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
Jesus.ArcasJesus.Arcas 

System.AbortJob Batch Apex Code Injection

Hi,


We have an Apex Job for which we would like to have some control whenever user uses Abort standard link. Does anybody know if it is possible to execute some code as a result of an Apex Job abort?


Thanks in advance.


Regards,

Jesus Arcas.



Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

Based on my experience with Batch Apex, I would say that this simply isn't possible. Even the "finish()" method isn't run, as far as I can tell, so there's no way you could determine a successful run.

All Answers

sfdcfoxsfdcfox

Based on my experience with Batch Apex, I would say that this simply isn't possible. Even the "finish()" method isn't run, as far as I can tell, so there's no way you could determine a successful run.

This was selected as the best answer
Jesus.ArcasJesus.Arcas

Hi, sfdcfox

 

Thanks for your response. That is what I was expecting, anyway.

 

Regards,

Jesus Arcas.