Lead Owner Not Updated Automatically If Its Territory Owner Is Changed
Lead Owner is not updated automatically if its Territory owner is changed. We have a groovy in place under leads(Before Update trigger on Lead object) to make the Territory owner as Lead owner immediately after the territory is assigned to the lead.
But, now we have changed the owners for many Territories. Is there a way for Leads to automatically reflect the new owner? apart from doing a manual update/ apart from an import. Is there any other option?
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):