How to turn off the lead assignment email notification ??
In my case,We don't have any Assignment rules ,lead owner is changed through apex trigger ,We don't want users to receive these Lead Assignment notifications .
Thanks in Advance.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityHow to turn off the lead assignment email notification ??
In my case,We don't have any Assignment rules ,lead owner is changed through apex trigger ,We don't want users to receive these Lead Assignment notifications .
Thanks in Advance.
This is similar to another that I answered, you might find it useful: Case Assignment Notification Suppression
SF Documentation on the EmailHeader option: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_database_dmloptions.htm#emailheader
The relevant part:
//THIS DMLOPTION SEEMS TO BE IGNORED IN BEFORE UPDATE TRIGGERS
Database.DMLOptions dlo = new Database.DMLOptions();
dlo.EmailHeader.triggerAutoResponseEmail = false;
dlo.EmailHeader.triggerUserEmail = false;
dlo.EmailHeader.triggerOtherEmail = false;
database.update(casesList,dlo);
There is some workaround would be to create a Queue, assign the user to that - and then uncheck the "email members of queue" in the Queue setup. Then assign those leads to that Queue rather than the user directly. By using this method, you can turnoff email notification for specific user as well.