Newer Version Available
AsyncApexJob
Represents an individual Apex sharing
recalculation job, a batch Apex job, a method with the future annotation, or a job that implements Queueable. Use this object to query Apex batch jobs in your
organization.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
The enableAsyncRequiresViewSetup field on the ApexSettings metadata type controls the activation of the critical update “Require View Setup permission to enqueue async Apex Jobs”. In API version 49.0 and later, when the field is set to true, users must have the View Setup and Configuration permission to access this object.
Fields
| Field Name | Details |
|---|---|
| ApexClassId |
|
| CompletedDate |
|
| ExtendedStatus |
|
| JobItemsProcessed |
|
| JobType |
|
| MethodName |
|
| NumberOfErrors |
|
| Status | |
| TotalJobItems |
|
Usage
Use this object to query Apex batch jobs in your organization.