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
Shawn Reichner 29Shawn Reichner 29 

Edit additional Email addresses on email templates

Devs,

I am wondering if there is a way to create an Apex class that will upon creating a new sandbox or refreshing an existing sandbox, that will scour the Email template object and find any email addresses in the Additional email Address fields specificaly for workflow email alerts and then edit them to make then un-usable just as the email addresses for users is edited to include somethign like @example.com.com or somethign of our choosing to ensure that a lot of manual tasks of running through each email alert to either edit manaully or remove completely for testing. 

I have not been able to find any help on this and wasnt sure if anyone has been able to do this somehow,

Thanks for your time,


Shawn