Activity Forums Salesforce® Discussions What is AsyncApexJob object in batch apex in Salesforce?

  • Anjali

    Member
    August 6, 2018 at 6:04 am

    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

  • Parul

    Member
    September 15, 2018 at 5:04 am

    AsyncApexJob object in batch apex represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation.

     

    Thanks

     

  • shariq

    Member
    September 15, 2018 at 5:34 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos