You need to sign in to do that
Don't have an account?

Trigger execution - order of operations and variable life span
Are triggers synchronous or asynchronous?
If I make an "insert" call in an Apex method, and that insert triggers a "before" and/or an "after" trigger for that record, should I expect that those triggers complete before the next line of Apex code?
I think the answer is "no" - meaning that triggers are asynchronous, but I just wanted to check...
Hi ryancha,
All triggers are by default synchronous. If you update a record, the corresponding after/before trigger will fire and the control won't be relinquished till the trigger completes.
If the trigger fails for any reason, the error is returned the calling method where the record is being updated.
- AJ