Explore Courses Blog Tutorials Interview Questions
0 votes
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 (32.1k 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

To learn in-depth about Workflow in Salesforce, sign up for an industry based Salesforce Certification.

Browse Categories