You need to sign in to do that
Don't have an account?

Trigger Sending Email Notification when Case Owner Changes
I am wrting a trigger that changes the owner of the case to different Queue based on certain criteria.
But as I changed the Case owner the notification email is being sent. How do I prevent that?
I did some searching but couldn't find a setting to disable this. In the Case Support Setting I have this unchecked.So, I think I am good on that.
Notify Case Owners when Case Ownership Changes | ![]() |
I did try this :
Database.DMLOptions dlo = new Database.DMLOptions();
dlo.emailHeader.triggerAutoResponseEmail = false;
theCase.setOptions(dlo);
But this is also not working. Is there a solution for this?
Appreciate the help.
Thanks
Who is this email sent to? The new owner or the old one?
Thanks,
Anup
Email is sent to all the members of the new Queue as I am setting Queue as new owner.
Have you checked if there is a workflow or trigger that is sending this email?
- Anup