Bulk API 2.0 Query
Bulk query jobs enable asynchronous processing of SOQL queries. They’re designed to handle queries that return large amounts of data (2,000 records or more).
Bulk API 2.0 query limits are described in Bulk API and Bulk API 2.0 Limits and Allocations in the Salesforce Developer Limits and Allocations Quick Reference.
-
Understanding Bulk API 2.0 Query
Learn about Bulk API 2.0 query availability, supported methods, and SOQL considerations.
-
Creates a query job.
-
Get Information About a Query Job
Gets information about one query job.
-
Gets the results for a query job. The job must have the state
JobComplete. -
Get Parallel Results for a Query Job
Returns up to five URIs in one response to use to get results for a query job. The job must have the state
jobComplete. -
Subscribe to Query Job Platform Events (Beta)
Use the standard platform event BulkApi2JobEvent to get query job status updates and begin downloading results before the query job completes.
-
Deletes a query job. When a job is deleted, job data stored by Salesforce is deleted and job metadata information is removed. The job no longer displays in the Bulk Data Load Jobs page in Salesforce.
-
Aborts a query job.
-
Get Information About All Query Jobs
Gets information about all query jobs in the org. The information includes Bulk API 2.0 query jobs and all Bulk API jobs. Job records are returned in an indeterminate order.
-
Use Compression for Bulk API 2.0 Query Responses
For query jobs, Bulk API 2.0 can compress the response body, which reduces network traffic and improves response time.
-
Troubleshooting Query Timeouts
To troubleshoot timeout errors in Bulk API 2.0 query operations, apply additional filter criteria.