If one object in Salesforce
have 2 triggers which runs “before insert”. Is there any way to control the
sequence of execution of these triggers
Salesforce.com has documented
that trigger sequence cannot be predefined. As a best practice create one
trigger per object and use comment blocks to separate different logic blocks.
By having all logic in one trigger you may also be able to optimize on your
SOQL queries.
(trigger.isInsert ||
trigger.isUpdate)
No comments:
Post a Comment