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
ImagepathImagepath 

Email alert trigged when contact is deleted

Is it possible to trigger an e-mail alert when a contact is deleted?  If so, how might this be done?  I'm pretty new to SF, so please forgive me if this is a "noob" question. :smileyhappy:

Thanks!

CaffeineCaffeine

ImagePath,

Currently this is only possible by writing a custom trigger that invokes APEX email services.  

 

The general pattern is:

1. Trigger on the 'After Delete' of the Contact.

2. In the trigger code (or class code called by the trigger), send an email via APEX email.

 

 

Hope this helps,

C.

Vijay RautVijay Raut

One suggestion here.

 

Try to use before delete trigger rather than after delete on Contact object.

 

Cheers,

V.R.