I'm trying to update case owner in after insert trigger but assignment rule is running as per order execution, if criteria doesn't match ,default owner from support settings is being set as an owner.
When record get created into Salesforce following Order of execution works:
System Validation Rules
Apex Before Triggers
Custom Validation Rules
Duplicate Rules
Apex After Triggers
Assignment Rules
2 件の回答
Hi Payal,
You may want to grab this session on order of execution by Daniel Stange & Don Robin: Taming the #.Salesforce Order of Execution, rather than a straight direct line is a :horseshoe: Understanding & investigating is key, for Salesforce developers, admins, consultant, architects, builders etc Watch now for free Pluralsight #.sfplaybyplay https://pluralsight.pxf.io/c/2297394/431340/7490?u=https%3A%2F%2Fapp.pluralsight.com%2Flibrary%2Fcourses%2Fplay-by-play-taming-the-salesforce-order-of-execution%2Ftable-of-contents