+ Start a Discussion

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 ChangesNot Checked


I did try this :


Database.DMLOptions dlo = new Database.DMLOptions();
dlo.emailHeader.triggerAutoResponseEmail = false;


But this is also not working. Is there a solution for this?


Appreciate the help.




Anup JadhavAnup Jadhav

Who is this email sent to? The new owner or the old one?





Email is sent to all the members of the new Queue as I am setting Queue as new owner.

Anup JadhavAnup Jadhav

Have you checked if there is a workflow or trigger that is sending this email?


- Anup