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
MKAMKA 

How to send email on delete?

I have a requirement to send email on deletion of a record. What's the best way to achieve this?
Best Answer chosen by MKA
RituSharmaRituSharma
You may send email either through trigger or flow. It's always better to do declarative ways hence I would suggest you to go with flow. Refer the URL for details: https://help.salesforce.com/apex/HTViewHelpDoc?id=flow_ref_elements_actions_sendemail.htm&language=en_us

All Answers

RituSharmaRituSharma
You may send email either through trigger or flow. It's always better to do declarative ways hence I would suggest you to go with flow. Refer the URL for details: https://help.salesforce.com/apex/HTViewHelpDoc?id=flow_ref_elements_actions_sendemail.htm&language=en_us
This was selected as the best answer
MKAMKA
Thanks for such a prompt response! Can i do it using process builder or worflow rule?
RituSharmaRituSharma
No, you can't use process builder or workflow rule as they don't support delete event.