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 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