Dynamics 365 按 REST 列出潜在客户状态代码枚举 API
Dynamics 365 list lead statuscode enums by REST API
我正在尝试弄清楚如何通过 REST API 列出潜在客户状态代码的枚举选项。我确实要求:
GET [Organization URI]/api/data/v8.2/EntityDefinitions(LogicalName='lead')/Attributes(LogicalName='statuscode')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet
但我收到如下错误:
"Navigation property Attributes With Id = LogicalName='statuscode' does not exist on Metadata Entity with ID = LogicalName='lead'"
实现此目标的正确终点是什么?
使用StatusAttributeMetadata
代替PicklistAttributeMetadata
:
GET [Organization URI]/api/data/v8.2/EntityDefinitions(LogicalName='lead')/Attributes/Microsoft.Dynamics.CRM.StatusAttributeMetadata?$select=LogicalName&$expand=OptionSet($select=Options)
我正在尝试弄清楚如何通过 REST API 列出潜在客户状态代码的枚举选项。我确实要求:
GET [Organization URI]/api/data/v8.2/EntityDefinitions(LogicalName='lead')/Attributes(LogicalName='statuscode')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet
但我收到如下错误:
"Navigation property Attributes With Id = LogicalName='statuscode' does not exist on Metadata Entity with ID = LogicalName='lead'"
实现此目标的正确终点是什么?
使用StatusAttributeMetadata
代替PicklistAttributeMetadata
:
GET [Organization URI]/api/data/v8.2/EntityDefinitions(LogicalName='lead')/Attributes/Microsoft.Dynamics.CRM.StatusAttributeMetadata?$select=LogicalName&$expand=OptionSet($select=Options)