Learn about Bulk API in Salesforce

What is Bulk API?

•The Bulk API provides a programmatic option to quickly load your org’s data into Salesforce.

•Bulk API is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches. Salesforce processes batches in the background.

•Prefer Bulk API 2.0 over Bulk API as it provides simplified process of operation by automatically handling chunking of data into Batches

When To Use Bulk API?

• When there is more Than 50K Records

• When there is no middleware involved.

• Optimized Way to upload data in Bulk

• Asynchronous(No Real Time Data)

Difference Between Bulk API 2.0 and Bulk API

Bulk API 2.0Bulk API
Ingest Availability, and Query Availability Ingest Availability, and Query Availability 
Supports Oauth 2.0 for AuthenticationDoesn’t Support Oauth.
Supports CSV formatSupports CSV, XML, JSON and binary attachments
Large File Batching > Break large amount of data into Batches and provide parallelism Automatically.Large File must be batched manually or by custom code
Query Result comes in a single endpointIterate through the retrieval of individual result sets.
Limit by total records uploaded per day. You can check by REST API /limits end pointLimits by quantity of batches per day
Can’t run it via Data LoaderSupported by Data Loader

Bulk API (Key Points)

Steps to Process Records via Bulk API

Leave a Comment