You need to sign in to do that
Don't have an account?
Middha
Trigger Context: Workaround for 100 DML statement limit in a trigger
Hi,
I have a requirement where i need to issue more then 100 DML statements in a trigger. But as per the trigger governor limits only 100 DML statements are allowed.
I also tried calling the trigger recursively, i.e. issuing 90 DML statements in a trigger and updating the record again, so that the trigger executes again on that record issuing another 90 DML statements until the processing completes.
But i noticed that calling the trigger recursively uses the same context and the DML statements keeps on adding to the same context.
Is there any other workaround for this where i can process more then 100 records.
GreatG
I have a requirement where i need to issue more then 100 DML statements in a trigger. But as per the trigger governor limits only 100 DML statements are allowed.
I also tried calling the trigger recursively, i.e. issuing 90 DML statements in a trigger and updating the record again, so that the trigger executes again on that record issuing another 90 DML statements until the processing completes.
But i noticed that calling the trigger recursively uses the same context and the DML statements keeps on adding to the same context.
Is there any other workaround for this where i can process more then 100 records.
GreatG
SalesForce will also be coming out with batch apex where you can run them on a schedule. These classes will not have any governor limits associated.
All Answers
SalesForce will also be coming out with batch apex where you can run them on a schedule. These classes will not have any governor limits associated.