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
Allie GoldAllie Gold 

Trigger to update account owner to equal specific territory assignment user

We use territory assignments in our SFDC enterprise instance. Each territory has a few users, but one user in each territory always has the role "Field Rep".

When a territory assignment exists in an account record, I want the Account Owner to equal Field Rep. 

Since workflow and process builder can't access the territory object, I believe a trigger is my only option, but I am an extreme novice when it comes to triggers. Any suggestions would be greatly appreciated!

Thanks!

 

Sean FieldingSean Fielding
Are you still looking for a custom trigger?  We have build similiar functionality for a number of clients and could assist.
Renato Barucco 1Renato Barucco 1

Hello Sean Fielding.

Can you share your trigger, please!?

Best regards