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
sfdev1sfdev1 

Help with Trigger on Opportunity

I have created a custom picklist on the Account Object which depicts the status of the Account (E.g Prospect, Active or Dormat)
 
I want to create a trigger on the Opportunity Update event that updates the Account Status to Active if the Opportunity.Stage = "Closed\Won"
 
 
I try varies Apex codes options with out success
micwamicwa
For this you don't need Apex, make a workflow rule that's much easier.
sfdev1sfdev1
Workflow does not allow to update another obect. If the rule based on the Opportunity then you are only allowed to update fields in the Opportunity object