Newer Version Available

This content describes an older version of this product. View Latest

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.

For more information, see AsyncApexJob in the Object Reference.

Fields

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