user1311776
user1311776

Reputation: 243

How do i 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 REST API. Is it possible to do that? If it is then how it can be done?

Thanks,

Raj.

Upvotes: 5

Views: 5691

Answers (1)

eyescream
eyescream

Reputation: 19637

It's very simple. You need to 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

Upvotes: 11

Related Questions