Activity › Forums › Salesforce® Discussions › What is AsyncApexJob object in batch apex in Salesforce?
Tagged: Apex Scheduled Jobs, Asynchronous Method Call, Batch Job, Salesforce Apex Code, Salesforce Custom Objects, Salesforce Objects, Standard Objects
-
What is AsyncApexJob object in batch apex in Salesforce?
Posted by suniti on July 3, 2018 at 12:49 PMWhat is AsyncApexJob object in batch apex in Salesforce?
shariq replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
Hi Suniti,
AsyncApexJob-Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future
annotation, or a job that implements Queueable.
BatchApex job represents an asynchronous Apex class using the Batchable interface via implements Database Batchable. Using Batch Apex allows for the asynchronous processing of a long running process on a large data volume by breaking the job into manageable chunks to be processed separately
- [adinserter block='9']
-
AsyncApexJob object in batch apex represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation.
Thanks
-
Hi,
In Salesforce, records in the ‘AsyncApexJob‘ table represents Apex jobs to run asynchronously when resources are available. Examples of these asynchronous Apex jobs include Future Methods, Queueable Apex, Batch Apex and Scheduled Apex. If we examine the SOAP API guide for the ‘AsyncApexJob’ object, we see these mentioned asynchronous jobs represented under the ‘JobType’ field, however we also observe a number of other job types such as ‘ApexToken’, ‘TestWorker’ and ‘TestRequest’.
Hope this helps.
Log In to reply.