function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
thedabblerthedabbler 

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;
theCase.setOptions(dlo);

 

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

 

Appreciate the help.

 

Thanks

 

Anup JadhavAnup Jadhav

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

 

Thanks,

Anup

thedabblerthedabbler

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