Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

AsyncApexJob

Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation, or a job that implements Queueable or Schedulable. Use this object to query Apex batch jobs in your organization.

This guide only lists certain information for each object. For more information, including descriptions of the fields, see AsyncApexJob in the Object Reference for the Salesforce Platform.

Fields

Field Name Field Label Type Digits Length Precision Scale
ApexClassId Class ID reference 18
CompletedDate Completion Date datetime
CreatedById Created By ID reference 18
CreatedDate Created Date datetime
CronTriggerId Scheduled Job ID reference 18
ExtendedStatus Status Detail string 255
Id Apex Job ID id 18
JobItemsProcessed Batches Processed int 9
JobType Job Type picklist 40
LastProcessed Last ID processed and committed string 15
LastProcessedOffset Offset of last ID processed and committed int 9
MethodName Apex Method string 255
NumberOfErrors Failures int 9
ParentJobId Apex Job ID reference 18
Status Status picklist 40
TotalJobItems Total Batches int 9