Find picklist values in Dynamics via the Web API

穿精又带淫゛_ 提交于 2020-05-09 05:17:10

问题


I'm trying to determine how I can find the integer values for picklist fields in Dynamics via the web api. I can access the basic metadata by using:

GET https://[COMPANY].api.crm3.dynamics.com/api/data/v9.0//EntityDefinitions(LogicalName='lead')/Attributes/

but for picklist values I don't see the mapping of the integer value to the displayed string.

Is there a table that holds all of this or a way to expand this information on the above call?


回答1:


You can use this to retrieve.

https://[COMPANY].api.crm3.dynamics.com/api/data/v9.0/EntityDefinitions(LogicalName='{Entity Name}')/Attributes(LogicalName='{OptionSet Name}')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=GlobalOptionSet($select=Options)

Reference



来源:https://stackoverflow.com/questions/51994419/find-picklist-values-in-dynamics-via-the-web-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!