I’m working on a SalesActivity module where I write a record for each sales related call, email, meeting and task. It works great so far and gives much much richer reporting abilities than reporting on all this stuff separately. However, my one remaining issue is that assignment notifications are sent for each created record. I don’t want to turn off all assignment notifications (I know how to do that) I only want to turn off for the specific module. I’ve read a few posts about this but none seemed to have worked for me.
Hey
the “_sendNotifications” function in the data/SugarBean.php file sends out assignment notifications
you can override this function for your specific module (In the bean file of that module ) to return immediately which will disable sending out notifications
I’ve tried a bunch of coding solutions trying to extend save() and set notify to false, also send_assingmnet_notifications to false, nothing seems to work!
Also tried a before save hook and and after save hook. Can’t believe this is this hard!
I also found this little gem which is super interesting, but alas doesn’t work either!
Description
Allows an administrator to explicitly disable modules from sending assignment notifications to users.
thanks @abuzarfaris That’s what I did (using the other function) it totally works stopping the emails if I add it in the /module/act_activities/act_activities.php. However, I want to make it upgrade safe by adding it to /custom/… but it doesn’t seem to work if I add it there. Am I doing something wrong with how I’m calling it in the custom folder?