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
Rahul SharmaRahul Sharma 

Fetching the Probability and Stage Name mapping from salesforce Metadata

Hello Board,

 

I ran into a issue where in i overridden Opportunity New button with visualforce page.

Everything is working properly except the functionality where in Probability value is changed to a respective value on change of Stage Name in standard functionality.

I believe that the mapping of StageName with Probability must be stored somewhere in metadata but i'm failing to find the exact value.

Solution using a custom setting to store mapping externally does not looks best option as user would need doubly enter changes/new values.

 

Please share some thoughts on this issue and thanks for your time.

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

Query OpportunityStage for current mappings. See www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_opportunitystage.htm for available fields.

All Answers

sfdcfoxsfdcfox

Query OpportunityStage for current mappings. See www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_opportunitystage.htm for available fields.

This was selected as the best answer
Rahul SharmaRahul Sharma
Thanks sfdcfox for your help.
Chirag MehtaChirag Mehta
Thank you, though small thing but this helped to recall that :)