Salesforce · Schema

QueryJobInfo

Detailed information about a Bulk API 2.0 query job, including its current state and processing statistics.

Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Properties

Name Type Description
id string The unique identifier of the query job.
operation string The query operation being performed.
object string The primary SObject type in the SOQL query. Derived automatically from the query.
state string The current state of a Bulk API 2.0 job, indicating where it is in its lifecycle.
createdDate string The date and time the job was created, in ISO 8601 format.
systemModstamp string The date and time the job was last modified, in ISO 8601 format.
numberRecordsProcessed integer The number of records returned by the query.
totalProcessingTime integer Total processing time in milliseconds.
errorMessage string Error message if the job reached the Failed state. Describes the reason for failure.
contentType string The content type of the query results.
columnDelimiter string The column delimiter used in the results CSV.
lineEnding string The line ending used in the results CSV.
jobType string The job type (V2Query for Bulk API 2.0 query jobs).
createdById string The Salesforce user ID of the user who created the job.
apiVersion number The API version used to create the job.
View JSON Schema on GitHub

JSON Schema

salesforce-bulk-2-query-job-info-schema.json Raw ↑
{
  "type": "object",
  "description": "Detailed information about a Bulk API 2.0 query job, including its current state and processing statistics.\n",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the query job.",
      "example": "abc123"
    },
    "operation": {
      "type": "string",
      "description": "The query operation being performed.",
      "example": "query",
      "enum": [
        "query",
        "queryAll"
      ]
    },
    "object": {
      "type": "string",
      "description": "The primary SObject type in the SOQL query. Derived automatically from the query.\n",
      "example": "example_value"
    },
    "state": {
      "type": "string",
      "description": "The current state of a Bulk API 2.0 job, indicating where it is in its lifecycle.\n",
      "enum": [
        "Open",
        "UploadComplete",
        "InProgress",
        "JobComplete",
        "Failed",
        "Aborted"
      ]
    },
    "createdDate": {
      "type": "string",
      "description": "The date and time the job was created, in ISO 8601 format.",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    },
    "systemModstamp": {
      "type": "string",
      "description": "The date and time the job was last modified, in ISO 8601 format.",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    },
    "numberRecordsProcessed": {
      "type": "integer",
      "description": "The number of records returned by the query.",
      "example": 10
    },
    "totalProcessingTime": {
      "type": "integer",
      "description": "Total processing time in milliseconds.",
      "example": 1700000000000
    },
    "errorMessage": {
      "type": "string",
      "description": "Error message if the job reached the Failed state. Describes the reason for failure.\n",
      "example": "example_value"
    },
    "contentType": {
      "type": "string",
      "description": "The content type of the query results.",
      "example": "CSV",
      "enum": [
        "CSV"
      ]
    },
    "columnDelimiter": {
      "type": "string",
      "description": "The column delimiter used in the results CSV.",
      "example": "COMMA",
      "enum": [
        "COMMA",
        "TAB",
        "PIPE",
        "SEMICOLON",
        "CARET",
        "BACKQUOTE"
      ]
    },
    "lineEnding": {
      "type": "string",
      "description": "The line ending used in the results CSV.",
      "example": "LF",
      "enum": [
        "LF",
        "CRLF"
      ]
    },
    "jobType": {
      "type": "string",
      "description": "The job type (V2Query for Bulk API 2.0 query jobs).",
      "example": "example_value"
    },
    "createdById": {
      "type": "string",
      "description": "The Salesforce user ID of the user who created the job.",
      "example": "500123"
    },
    "apiVersion": {
      "type": "number",
      "description": "The API version used to create the job.",
      "example": 42.5
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "QueryJobInfo"
}