通过Web API在Dynamics中查找选择列表值 [英] Find picklist values in Dynamics via the Web API
本文介绍了通过Web API在Dynamics中查找选择列表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试确定如何通过Web api在Dynamics中找到选项列表字段的整数值.我可以使用以下方法访问基本元数据:
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?
推荐答案
您可以使用它来进行检索.
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)