Bulk API now supports the queryAll operation and SOQL relationships. Also, we’re moving toward the next iteration of the Bulk API with a pilot version of Bulk API 2.0. This new API provides a simple interface for quickly loading large amounts of data into your Salesforce org.
Bulk queries now support the queryAll operation and SOQL relationships.
- The queryAll operation
- The queryAll operation returns records that have been deleted because of a merge or delete. The queryAll operation also returns information about archived Task and Event records. To make a queryAll request, set the operation field on the JobInfo resource to queryall. For more information about bulk queries, see Use Bulk Query in the Bulk API Developer Guide.
- SOQL relationships
- Relationship queries traverse parent-to-child and child-to-parent relationships between objects to filter and return results. You can now use SOQL relationships in bulk queries. For more information about SOQL relationships, see Using Relationship Queries in the Force.com SOQL and SOSL Reference.
Bulk API 2.0 provides a simple interface for quickly loading large amounts of data into your Salesforce org.
Bulk API 2.0 includes the following features.
- Support for OAuth 2.0
- Bulk API 2.0 supports all OAuth flows supported by Salesforce’s other REST APIs.
- Automatic File Batching
- Bulk API 2.0 simplifies uploading large amounts of data by breaking the files into batches automatically. All you have to do is upload a CSV file with your record data and check back when the results are ready.
- Daily Limits Based on Number of Records
- Instead of limiting the amount of data uploaded daily by the quantity of batches, Bulk API 2.0 uses a limit of total records uploaded. For the pilot, the limit is 1,000,000 records per 24-hour period.