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
soma s 6soma s 6 


My territory assigment rule fire when ever i save the record from UI, but i would like to automate it even if i save the record from back end 
how to do it please advise
If you perfrom Update DML from apex then territory management rule never fire. 

You need to perfrom SOAP API callout with Account Id and perfrom dummy updates that will fire the territory management rule

Check this my answer