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
zhufengjackzhufengjack 

How to Cut Up Records into different batch in trigger

Hi Guys,
As you know, salesforce trigger work as a batch mode. For example, when I insert a list which contain 100 leads. If we have a trigger in lead object, we can capture these 100 record and process before insert. But now I found something very weird. We insert leads via web service. But in salesforce, this list was cut to different batch in trigger. I appreciate if you can let me know how salesforce cut list into different batch in trigger. Thanks in advance. 
Ankit AroraAnkit Arora
Trigger executes 200 records at a time, suppose if 600 records were inserted then trigger will cut them in 3 chunks of 200 each and this is done automatically, we've no controle over it.