CloseJobV2
Closes or aborts a Salesforce job based on its current state.
Input
| Name | Type | Description |
| JobId | String | Unique identifier of the Salesforce Bulk API v2.0 job that is being closed or aborted. |
| State | String | Specifies the desired final state of the job. Use 'UploadComplete' to mark the job as ready for processing or 'Aborted' to cancel it. This is only applicable for jobs created using UploadJobDataV2.
The allowed values are UploadComplete, Aborted. |
| JobType | String | Type of job being closed. Acceptable values are 'UNKNOWN', 'INGEST' for data import jobs, or 'QUERY' for data retrieval jobs.
The allowed values are UNKNOWN, INGEST, QUERY. The default value is UNKNOWN. |
Result Set Columns
| Name | Type | Description |
| Closed | String | Indicates whether the job was successfully closed or aborted. Returns 'true' if the operation succeeded. |