How do i get all picklist values from a field in salesforce using REST Api?
Asked Answered
L

1

5

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.

Lordship answered 9/1, 2013 at 9:22 Comment(0)
P
11

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

Pluvious answered 9/1, 2013 at 9:48 Comment(2)
Is it possible to request a single field values rather than all object fields with values?Csc
Seems like I sorted it out myself, see https://mcmap.net/q/2029945/-salesforce-object-describe-has-big-data-how-to-get-limited-data-like-picklist-values-from-salesforce-object-describeCsc

© 2022 - 2024 — McMap. All rights reserved.