+ Start a Discussion

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.