Newer Version Available
JobInfo
You can create a job, get information about a job, close a job, or abort a job using the JobInfo resource.
Fields
| Name | Type | Request | Description |
|---|---|---|---|
| apiVersion | string | Read only. Don’t set for new job. | The API version of the job set in the URI when the job was created. The earliest supported version is 17.0. |
| apexProcessingTime | long | Don’t specify for new job. | The number of milliseconds taken to process triggers and other processes related to
the job data. This number is the sum of the
equivalent times in all batches in the job. This doesn't
include the time used for processing asynchronous and batch Apex
operations. If there are no triggers, the value is 0. See also
apiActiveProcessingTime and
totalProcessingTime. This field is available in API version 19.0 and later. |
| apiActiveProcessingTime | long | Don’t specify for new job. |
The number of
milliseconds taken to actively process the job. It includes
apexProcessingTime, but doesn't include
the time the job waited in the queue to be processed or the time
required for serialization and deserialization. This is the sum
of the equivalent times in all batches in the job. See also
apexProcessingTime and
totalProcessingTime. This field is available in API version 19.0 and later. |
| assignmentRuleId | string | Can't update after creation. | The ID of a specific assignment rule to run for a case or a lead. The assignment rule can be active or inactive. The ID can be retrieved by using the SOAP-based SOAP API to query the AssignmentRule object. |
| concurrencyMode | ConcurrencyModeEnum | The concurrency mode for the job. The valid values are:
|
|
| contentType | ContentType | The content type for the job. The valid values are:
|
|
| createdById | string | System field | The ID of the user who created this job. All batches must be created by this same user. |
| createdDate | dateTime | System field | The date and time in the UTC time zone when the job was created. |
| externalIdFieldName | string | Required with upsert | The name of the external ID field for an upsert(). |
| id | string | Don’t specify for new job. | Unique ID for this job. |
| numberBatchesCompleted | int | Don’t specify for new job. | The number of batches that have been completed for this job. |
| numberBatchesQueued | int | Don’t specify for new job. | The number of batches queued for this job. |
| numberBatchesFailed | int | Don’t specify for new job. | The number of batches that have failed for this job. |
| numberBatchesInProgress | int | Don’t specify for new job. | The number of batches that are in progress for this job. |
| numberBatchesTotal | int | Don’t specify for new job. | The number of total batches currently in the job. This value
increases as more batches are added to the job. When the job
state is Closed or Failed, this number represents the final total. The job is complete when numberBatchesTotal equals the sum of numberBatchesCompleted and numberBatchesFailed. |
| numberRecordsFailed | long | Don’t specify for new job. | The number of records that weren’t processed successfully in this job. This field is available in API version 19.0 and later. |
| numberRecordsProcessed | long | Don’t specify for new job. | The number of records already processed. This number increases as more batches are processed. |
| numberRetries | int | The number of times that Salesforce attempted to save the results of an operation. The repeated attempts are due to a problem, such as a lock contention. | |
| object | string | Required | The object type for the data being processed. All data in a job must be of a single object type. |
| operation | OperationEnum | Required |
The processing operation for all the batches in the job.
The valid values are:
To ensure referential integrity, the delete operation supports cascading deletions. If you delete a parent record, you delete its children automatically, as long as each child record can be deleted. For example, if you delete a Case record, the Bulk API automatically deletes any child records, such as CaseComment, CaseHistory, and CaseSolution records associated with that case. However, if a CaseComment isn’t deletable or is being used, then the delete operation on the parent Case record fails. |
| state | JobStateEnum | Required if creating, closing, or aborting a job. |
The current state of processing for the
job:
|
| systemModstamp | dateTime | System field | Date and time in the UTC time zone when the job finished. |
| totalProcessingTime | long | Don’t specify for new job. | The number of milliseconds taken to process the job. This number is the sum of the
total processing times for all batches in the job. See also
apexProcessingTime and
apiActiveProcessingTime. This field is available in API version 19.0 and later. |