For the use cases where we would use mdapi to retrieve all picklistValues on a custom field. All of the examples are using the deprecated picklistValues code, whereas today we would need to use valueSet.
Currently, I need to return a list of picklistValues (they're a global value set) related to a custom field. The service has been instantiated and everything has been deployed using the github loader.
Hi,
For the use cases where we would use mdapi to retrieve all picklistValues on a custom field. All of the examples are using the deprecated picklistValues code, whereas today we would need to use valueSet.
Currently, I need to return a list of picklistValues (they're a global value set) related to a custom field. The service has been instantiated and everything has been deployed using the github loader.
The code I believe should work is
However, when outputting this information. A null item is returned for
customField.valueSet.valueSetDefinition
.System debug of customField.valueSet
Why is this code failing? Is there something else in the documentation that suits the request better?