You need to sign in to do that
Don't have an account?
zhufengjack
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.
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 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.