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
Michael MMichael M 

Can I trigger something after a ListEmail is sent?

Hello, I would like to set up an apex trigger after a ListEmail is sent. However, i am seeing that ListEmail object is not a choice in the list of trigger objects. There is only "ListEmailChangeEvent". I am not familiar with that trigger. What would be an example of how I could use the ListEmailChangeEvent object trigger to fire after a ListEmail is sent?
Best Answer chosen by Michael M
VinayVinay (Salesforce Developers) 
Hi Michael,

Mass email actions do not invoke triggers,  check below reference for same.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_ignoring_operations.htm

An alternate approach would be try to use scheduled apex for operations around list emails.

Hope this helps...

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Michael,

Mass email actions do not invoke triggers,  check below reference for same.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_ignoring_operations.htm

An alternate approach would be try to use scheduled apex for operations around list emails.

Hope this helps...

Thanks,
This was selected as the best answer
Michael MMichael M
ok- that's good to know. Thank you. 

Could the ListEmailChangeEvent class be trigger when a Listemail is sent?
VinayVinay (Salesforce Developers) 
As per my understanding, 'ListEmailChangeEvent' can't be used for ListEmail.

Thanks,
Michael MMichael M
Ok, thank you