How to get all picklist values ​​from a field in salesforce using REST Api?

I am trying to get all picklist values ​​from a field in salesforce using the REST API. Can this be done? If so, how can this be done?

Thanks,

Raj.

+4
source share
1 answer

It is very simple. You need to access a resource like this: /services/data/v26.0/sobjects/Opportunity/describe (use whatever object you want) and the JSON response will contain fields node:

enter image description here

+10
source

All Articles