André Lopes

Using Rest to Create new Tasks.

Discussion created by André Lopes on Apr 10, 2018
Latest reply on May 10, 2018 by Giovanni Marazzi
Branched from an earlier discussion

Hi Giovanni Marazzi 


Import created records don't trigger Email notification because such feature is suppressed on saving imported records.

Inside SugarCRM api it verify if user should be notified (data/SugarBeanApiHelper.php, method checkNotify), called from include/api/SugarApi.php, method saveBean.

So if you want to suppress Email notification on creating Tasks through API you need to create the script custom/modules/Tasks/clients/base/api/CustomTasksApi.php and define inside class CustomTasksApi the method saveBean and finally invoke $bean->save(false);


Remember you need to run Quick Repair and Rebuild after creating such file.