function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ElkayElkay 

How many API calls does an Upsert operation consumes

I have third party application that upserts data in salesforce.com. How many API calls a single upsert operation consumes provided the batch is set to 2000 records. This is SOAP based integration without Bulk API
Best Answer chosen by Elkay
Usman AslamUsman Aslam
Total Number of API calls = (TOTAL_RECORDS / BATCH_SIZE) + 1.
For instance
TOTAL_RECORDS = 5000
BATCH_SIZE = 2000
Total Number of API calls
= 5000/2000 +  1
= 2 +  1
= 3

Please mark it as best answer if it helps.

Thanks