Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 824
user1311776 Avatar asked Dec 20 '22 11:12

user1311776


1 Answers

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

like image 180
eyescream Avatar answered Feb 26 '23 03:02

eyescream