AbortJob
Terminates an active Salesforce job before completion.
Input
| Name | Type | Description |
| JobId | String | Unique identifier of the Salesforce Bulk API job to be aborted. |
Result Set Columns
| Name | Type | Description |
| ID | String | Unique ID of the aborted job returned by Salesforce. |
| JobID | String | Alias for the job ID of the aborted operation. |
| ObjectName | String | Name of the Salesforce object (such as Account, Lead, or Contact) associated with the job. |
| Operation | String | Type of data operation the job was executing, such as insert, update, upsert, delete, or query. |
| ApiVersion | String | API version used when the job was created. Determines field availability and behavior. |
| ApexProcessingTime | String | Total time in milliseconds spent running Apex triggers and automation for the job's records. Available from API version 19.0 onward. |
| ApiActiveProcessingTime | String | Total time in milliseconds Salesforce actively processed the job, excluding wait time and serialization overhead. Includes ApexProcessingTime. |
| AssignmentRuleId | String | ID of the assignment rule used for lead or case routing in the job, if applicable. |
| ConcurrencyMode | String | Specifies whether the job was processed in 'parallel' or 'serial' mode, affecting record lock behavior. |
| ContentType | String | Format of data submitted in the job. Valid values include CSV, XML, ZIP_CSV, and ZIP_XML. |
| CreatedById | String | ID of the Salesforce user who initiated the job. |
| CreatedDate | String | Timestamp when the job was created in Salesforce. |
| ExternalIdFieldName | String | Field used as an external ID during upsert operations to match existing records. |
| NumberBatchesCompleted | String | Number of batches in the job that have finished processing successfully. |
| NumberBatchesQueued | String | Number of batches currently waiting in the queue to be processed. |
| NumberBatchesFailed | String | Number of batches in the job that failed during processing. |
| NumberBatchesInProgress | String | Number of batches currently being processed. |
| NumberBatchesTotal | String | Total number of batches submitted to the job. Finalized when job is closed or failed. |
| NumberRecordsFailed | String | Total number of records that failed processing across all batches. Available from API version 19.0 onward. |
| NumberRecordsProcessed | String | Total number of records successfully processed so far in the job. |
| NumberRetries | String | Number of retry attempts Salesforce made due to temporary issues, such as record locks. |
| State | String | Current state of the job. Possible values include Open, Closed, Aborted, or Failed. |
| SystemModStamp | String | UTC timestamp of the last modification to the job, typically when it finished processing. |
| TotalProcessingTime | String | Total processing time in milliseconds for all job batches combined. Available from API version 19.0 onward. |