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
OlenaOlena 

Change the batch size in Bulk Insert via BULK API

Hello guys,

Please advise how I can change the batch size for Bulk Insert via Bulk API? Is there a parameter, like 'batchSize=some_value' and if so, where should I use I this parameter (when create a job or when execute it)?

Thanks a lot in advance.

VinayVinay (Salesforce Developers) 
Hi Olena,

Check below reference that can help you.

https://salesforce.stackexchange.com/questions/300961/is-it-possible-to-change-the-size-of-the-auto-chunked-batches-in-bulk-api

Thanks,
OlenaOlena

Hello Vinay, 

Thanks. So, as far as I undertand, I cannot change batch size for BULK API and I should use sObjects collection instead.