function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thomas Miller 18Thomas Miller 18 

Enforce territory assignment rules when inline editing an account

Inline Edit and Territory Assignment Rules
When you inline edit an account and save, territory assignment rules cannot be enforced. Unfortunately even in an APEX trigger you cannot trigger the rules.
A possible solution seems to be to fire a web service call from the trigger which does a second update and requires territory assignment rules to be run.
 
Has anyone written working APEX code for this scenario and can share the relevant code snippets?
PriyaPriya (Salesforce Developers) 

Hi Thomas,

Assignment rules don't fire with inline edits and thus inline editing of cases and leads doesn't make much sense

This is still in idea phase :- 
https://ideas.salesforce.com/s/idea/a0B8W00000GdiHlUAJ/assignment-rules-dont-work-with-inline-edits 

You can also upvote for this.

For more detail about the limitation refer this link :- 
https://help.salesforce.com/s/articleView?id=000315632&type=1

If this information is helpful, kindly mark it as best answer so that it can help others.

Regards,

Priya Ranjan

Dr. Thomas MillerDr. Thomas Miller
Hello Priya,
i) I am talking about territory assignment rules, not cases or leads
ii) you cannot force users to edit accounts only through the edit layout when inline editing is so much easier. Hence we need a solution to fire assignment rules in this case.