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
Sampath KumarSampath Kumar 

How to send an email alert when batch apex failed or aborted

Hi All,

Good Day!

I have few scheduled jobs which will run daily. We will get email alert with status when job is finished.
How to send an email alert when job is aborted or failed?.
As per my knowledge finish method will get execute only when the batch job is completed.

Regards
Sampath Kumar Goud
sandeep sankhlasandeep sankhla
Hi Sampath,

As per my knowledge, we can not track if batch is aborted or failed.please refer the below link which can help you ...you need to conatct salesofrce if you need to track..

http://salesforce.stackexchange.com/questions/24230/is-finish-always-called-when-batch-is-manually-aborted

Thanks
sandeep