+ 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