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
rohit.mehtarohit.mehta 

Territory Assignment Rules


I have territory assignment rules for Account.
When I update the Account from my apex code, these rules dont seem to run.

When I go into an account within Salesforce and click edit and save, the rules run.

Is there any way to ensure that the rules run when an account is updated from apex code.

Thanks,
Rohit