You need to sign in to do that
Don't have an account?
madhan bondalapati
Trigger Upsert?
i am inserting 100 records inthat 50 insert,50 update through workbench.what will be the size of the trigger.new() .Whether it will 50 or 100?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Trigger will fire for 2 times, one for insert records and in this context Trigger.new will be 50 and
second time trigger will fire for update records and in this context Trigger.new and old will be 50.
Regards,
Mahesh
All Answers
Trigger will fire for 2 times, one for insert records and in this context Trigger.new will be 50 and
second time trigger will fire for update records and in this context Trigger.new and old will be 50.
Regards,
Mahesh
Below is the results from my test
I did a upsert of 5 Cases (2 new and 3 existing) and the results below:
CaseTriggerNew on Case trigger event BeforeInsert for [new, new]
CaseTriggerNew on Case trigger event BeforeUpdate for [5003600000167tx, 5003600000167vA, 50036000001HLfY]
Hope this is helpful.
Regards,
Mahesh
I have one doubt for many records we will get exception?
Yes when we do update both are same but you can't do update for the mix of new and existing records.
Regards,
Mahesh