Assignment Notification emails

Hi,

   I am using the Bulk API to create call records and related Contact records (if appropriate). One of the filed that is getting populated is "assigned_user_id".

When records are created Assignment Notification emails are sent to the User the call has been assigned to. Is there a way of creating these Call records using the API without triggering a Assignment Notification email? or is the only option to turn off Assignment Notification emails at the system level or User level using the Administration options?

Regards - Martin 

  • One way of tackling this that automatically jumps right out at me is Custom API.  The emails are triggered during a $bean-save(); which is what is called during almost all Sugar core code.  You could get around this by creating your own custom endpoint and doing raw SQL inserts.  The calls module schema isnt that complicated.  

    http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Integration/Web_Services/v10/Extendi… 

  • Hi Martin Bond,

    All the records in Sugar are created through API, be it from the UI or from the backend using some script.

    You can turn off the assignment notifications module wise. Just add the following entry in sugar config_override.php file and it will stop notifications for Calls module.

    $sugar_config['exclude_notifications']['Calls']=true;

    To be more dynamic (based on some extra conditions), you can override checkNotify method of SugarBeanApiHelper class (data/SugarBeanApiHelper.php) which is used by saveBean method of SugarApi class (include/api/SugarApi.php).

    Let us know if this helps.

    Regards.

    Hats

  • Hi Ted,

       thank you for this. I was not aware that you can create customized variants of the APIs. I will have a play and see what i can achieve.

    Thanks - Martin 

  • Hi Hats,

        Excellent. Thank you for this. looks like a quick fix for the current situation.

    Thanks - Martin

  • it seems this is still an issue, when pushing Documents via API during a migration project, regardless of notifications being disabled, users are still getting the assignment notification emails.

    .

    CRM Business Consultant

  • Thank you for teaching me something new! :) This is very helpful.
    I didn't know I could switch off notifications for given modules at admin level.

    I wish there was a way for users to specify which modules they want to receive notifications for in their profiles.

    Thanks again,
    Francesca