0 votes
1 view
in Salesforce by (11.9k points)

I am trying to get all picklist values from a field in salesforce using REST API. Is it possible to do that? If it is then how it can be done?

1 Answer

0 votes
by (29.8k points)

You can get all picklist values from a field using REST API by doing the following:

Access resource similar to this: /services/data/v26.0/sobjects/Opportunity/describe (use whichever object you want) and the JSON response will contain fields node:

enter image description here

...