Is there an API where I can get all sales stages from an organization?
Is a sales stage equivalent to a layout? I found this: Get all page-layouts for an object via API and maybe it's the same question, but I'm not sure.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityIs there an API where I can get all sales stages from an organization?
Is a sales stage equivalent to a layout? I found this: Get all page-layouts for an object via API and maybe it's the same question, but I'm not sure.
In the REST API, if you hit the Opportunity/describe endpoint, current url seems to be:
https://naXX.salesforce.com/services/data/v20.0/sobjects/Opportunity/describe
The sales stages are in the response, in fields->n->picklistValues, where n is the index of the field whose label is Stage.
You need to be using the Schema and describe results in order to find all of the Stages. That field is a 'picklist' field. Layouts and Stages are completely different things.