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
jd_labbejd_labbe 

Trying to change Forecast Category to 'Omitted' based on Account attribute value

Hello,

 

I am a newbie to Apex code development and would like  to write a trigger that will change the forecastcategoryname on an opportunity to 'Omitted' if the Account custom field named "Validation Status" = 'Test Account'. This means that the trigger would have to look up the Validation Status value on the Account associated with the opportunity. Can someone please advise me on how to best achieve this?

 

Thanks!!