Via the SOAP API, can I get a list of the Pick List values from an Objects Field's type that is a pick list?
For example,
The Object Opportunity
has a field called Type
which is a Picklist. I would like to be able to query this Pick List. Is is possible?
Best Answer
Yes, you can. There is a method called
describeSObjects()
which can be used to retrieve picklist values.https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_describesobjects.htm
A code example is also provided there. Here an excerpt: