AsyncApexJob
Tracks the execution of asynchronous Apex jobs, including batch and scheduled jobs.
Columns
| Name | Type | References | Description |
| Id [KEY] | String | Unique identifier for the asynchronous Apex job. | |
| CreatedById | String |
User.Id | ID of the user who initiated the job. |
| JobType | String | The type of asynchronous job, such as BatchApex, Future, Queueable, or ScheduledApex. | |
| ApexClassId | String |
ApexClass.Id | ID of the Apex class associated with the job. |
| Status | String | Current status of the job, such as Queued, Processing, Completed, or Failed. | |
| JobItemsProcessed | Int | The number of job items or batches that have been processed so far. | |
| TotalJobItems | Int | The total number of job items or batches that are scheduled to be processed. | |
| NumberOfErrors | Int | The number of job items that failed during processing. | |
| CompletedDate | Datetime | Date and time when the job finished executing. | |
| MethodName | String | The name of the Apex method that was executed as part of the job. | |
| ExtendedStatus | String | Detailed status message providing additional context about the job's execution. | |
| ParentJobId | String |
AsyncApexJob.Id | If the job was created by another Apex job, this is the ID of the parent job. |
| LastProcessed | String | The ID of the last record that was successfully processed and committed. | |
| LastProcessedOffset | Int | The offset position of the last record that was successfully processed and committed. | |
| CronTriggerId | String |
CronTrigger.Id | ID of the CronTrigger associated with this record. |
| SOQL | String | Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. | |
| CreatedDate | Datetime | Date and time when the job was created. |