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
JaredPHJaredPH 

Update account owner when workflow changes opp owner

We have a workflow based on opportunity record that changes the owner of the opportunity. We would like to also have the account owner change automatically to the new opportunity owner when the opp owner is changed. After looking, there seems to be no way to do this with workflows. What about a trigger? Pretty much no experience with triggers, here...Can anyone help?

VJSFDCVJSFDC

Hi,

 

Yes you can write a Trigger on Opportunity after update event of Owner Field, Query for the Account and updates it Account Owner Field.

Make sure to check that the Trigger is fired only when Oppty Owner field is edited and not any other field is updated.

 

Thanks.