Activity Forums Salesforce® Discussions How to query an Async method in Salesforce Apex?

  • Avnish Yadav

    Member
    August 31, 2018 at 10:33 am

    Hello Anurag,

    Use the following snippet to query your async jobs:-

    AsyncApexJob jobInfo = [SELECT Status, NumberOfErrors
    FROM AsyncApexJob WHERE Id = :jobID];

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos