Skip to main content

We are using territory assignment rules to grant visibility of accounts to partner users.  We are updating a field that is used in the rules in a flow however the rules are not evaluated on save.  I have tried doing this in a before save, after save, and screen flows and the account is not inserted into territories as expected.   

 

I have confirmed the rules are otherwise working as expected, the only issue is when the account is updated via flow.   

 

In looking at the order of execution I made sure to turn off other automation to make sure that the save was not recursive...no luck.   

 

Am I crazy, missing something, or does it just not work in a flow....and if so, how can we make it work using flow?

2 answers
  1. Mar 12, 2025, 9:52 PM

    From what I've been able to find it is a limitation of the Lightning Experience UI. There is a checkbox you can see from the classic interface, but to trigger this in Lightning all recommendations point to having to make an API call. The concern then is that if you do this on every Account update, you could run into API call limits. 

     

    https://salesforce.stackexchange.com/questions/398597/territory-assignments-on-account-page-in-lightning-mode

     

     

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4PekSAF

     

     

    This last article suggests that it can be done, but just setting the "Evaluate this account against territory rules on save" and "Select by default" to true, but the other articles suggest Users have run into mixed success with that. 

     

    At the bottom of the article, there is a link to a Salesforce Idea related to the issue with some more documentation guidance on Ashit Patel's January 14, 2024 post. 

     

    https://help.salesforce.com/s/articleView?id=000385116&type=1