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
Avin KramerAvin Kramer 

Update account owner when an opp is won

Hi -  I have a requirement to update Account owner (based on state values) when an opportunity is won. As there are a lot of state values would it be ideal to do this using apex trigger? I'm an admin could anybody help me on how to approach this?any suggestions appreciated. 
Hi Avin Kramer,

use Process Builder, it is much simpler and you don't need to worry about bugs.
Type "Process Builder" in setup, create new, and then just follow the guide.

If you want to try it first, just follow this trailhead:

Good Luck!
Avin KramerAvin Kramer
FearNone - I'm afraid i would not be able to use process builder for this. There is a known issue that Salesforce needs to fix so that option is void. I don't want to create multiple work flow rules in order to accomplish this. My only way is to write a trigger.