'Dynamics CRM: Retrieve all OptionSet values of an entity?
I can get all global optionset values by using below api url
{Org Url}/api/data/v8.1/GlobalOptionSetDefinitions(Name='{Global Option Set Name}')
What is the api url to get entity's optionset all values?
Update: It worked for me using below rest url
{YourUrl}/EntityDefinitions(LogicalName='{EntityName}')/Attributes(LogicalName='{OptionSetAttributeName}')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|