Pages
Home
About Me
Contact Us
Videos
How to abort Apex Jobs using Apex in Salesforce?
Use System.abortJob( '<JobID>' ) to abort the job.
To get the JobId, use the "AsyncApexJob" object. Add proper WHERE condition to the SOQL to find the Job Ids.
Help Article -
https://help.salesforce.com/articleView?id=000324656&type=1&mode=1
Newer Post
Older Post
Home