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 

Parents Reply
  • 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

Children