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
TehNrdTehNrd 

How to tell if Forecast Category has been overridden

Usually the Forecast Category field is driven by the Stage picklist but a user can override this value with the Forecast tab. With Apex is there any way to identify if the Forecast Category field has been overridden?

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
micwamicwa

You can check if the probability is the default probability for this stage. You find all the information you need in the object "OpportunityStage":

 

Select o.ForecastCategory, o.DefaultProbability From OpportunityStage o where o.IsActive = true

 

 

 

All Answers

micwamicwa

You can check if the probability is the default probability for this stage. You find all the information you need in the object "OpportunityStage":

 

Select o.ForecastCategory, o.DefaultProbability From OpportunityStage o where o.IsActive = true

 

 

 

This was selected as the best answer
TehNrdTehNrd
Excellent. Thanks.