+ Start a Discussion

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



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?