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
Raj NarasRaj Naras 

email alert on completion of apex jobs

i have a requirement to notify few folks on completion of the apex jobs. any suggestions around this

thanks in advance for your help
Hargobind_SinghHargobind_Singh
Hi Raj, I dont think there is any out of the box funcitonality for this. However, if this is a critical requirement, you can write a flag to some record on a table at the end of your apex job, and create a salesforce point-and-click email alert on this flag ? This would cause the flag to be updated on completion of the apex job which would trigger the email. 
 
Vi$hVi$h
Hi Raj, 

The other option available is you could write some apex code to send out an email or do a post in a chatter group.
If you are using a batch job, you will have to write this in the finish method.

Thanks,
Vishal