GetJob
Retrieves details about a specific Salesforce job, including its status and associated records.
Input
| Name | Type | Description |
| JobId | String | The Salesforce Job ID to retrieve. This identifies the bulk operation whose metadata and status will be returned. |
Result Set Columns
| Name | Type | Description |
| ID | String | Unique identifier of the job. Same as the input JobId. |
| JobID | String | Alias for the job's unique ID. Same value as ID. |
| ObjectName | String | Name of the Salesforce object involved in the job, such as Account, Contact, or Opportunity. |
| Operation | String | Bulk operation being performed in the job. Possible values include insert, update, upsert, delete, query, and hardDelete. |
| ApiVersion | String | The Salesforce API version used when the job was created. Minimum supported version is 17.0. |
| ApexProcessingTime | String | Time in milliseconds spent processing Apex triggers and flows during the job. Does not include asynchronous Apex or batch jobs. Available from API version 19.0. |
| ApiActiveProcessingTime | String | Time in milliseconds of active processing (including ApexProcessingTime), excluding time spent waiting in queues or on serialization. Available from API version 19.0. |
| AssignmentRuleId | String | ID of the assignment rule applied to this job, used for assigning records such as leads or cases. May reference an active or inactive rule. |
| ConcurrencyMode | String | Mode of execution for batches in the job. 'Parallel' allows concurrent processing. 'Serial' processes batches one at a time to reduce contention. |
| ContentType | String | Data format used for the job, such as CSV, XML, ZIP_CSV, or ZIP_XML. |
| CreatedById | String | Salesforce user ID of the individual who created the job. |
| CreatedDate | String | Date and time (UTC) when the job was initially created. |
| ExternalIdFieldName | String | Field used for upsert operations to identify records by an external ID instead of Salesforce ID. |
| NumberBatchesCompleted | String | Number of batches within the job that completed successfully. |
| NumberBatchesQueued | String | Number of batches currently waiting to be processed. |
| NumberBatchesFailed | String | Number of batches that encountered errors and failed to complete. |
| NumberBatchesInProgress | String | Number of batches that are actively being processed. |
| NumberBatchesTotal | String | Total number of batches created for the job. Equals the sum of completed, failed, and in-progress batches once the job is closed or failed. |
| NumberRecordsFailed | String | Total number of records that failed to process across all batches in the job. Available from API version 19.0. |
| NumberRecordsProcessed | String | Total number of records that have been successfully processed across all batches. |
| NumberRetries | String | Number of internal retry attempts made by Salesforce to save results due to issues like lock contention. |
| State | String | Current lifecycle state of the job. Possible values include 'Open', 'Closed', 'Aborted', or 'Failed'. |
| SystemModStamp | String | Timestamp (UTC) of the most recent modification to the job. Indicates when the job last changed status or data. |
| TotalProcessingTime | String | Aggregate time in milliseconds spent processing all batches in the job. Does not include wait time. Available from API version 19.0. |