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
NinoJoseNinoJose 

how many API calls does an update of 200 records count?

Hi, just want to verfiy, if I update 200 record by batch how many API call will it produce? You see Im having trouble with the limit the salesforce enforce.

Thanks
sfdcfoxsfdcfox
If you update 200 records one a time, it will consume 200 calls. If you update 200 records using a batch call (an array), it will use one API call. Most calls use only one count, but relationship queries (i.e. select id, (select id from contacts) from account) will use 1 API call per child relationship queried. The example above would use two counts, and if you had to use queryMore(), it would consume even more calls.