此错误是什么意思,所以在Dynamics crm / api / data / ?

问题描述 投票:1回答:1
中,“”'RetrieveMultiple'方法不支持类型的实体”

[当我尝试执行对GET ../api/data/<version>/officedocuments和至少10个实体的请求时,出现错误:

{“错误”:{“代码”:“ 0x80040800”,“消息”:“” RetrieveMultiple“方法不支持'officedocument'类型的实体。“}}

[当我尝试获取特定实体记录的完整JSON时遇到的相同问题

{“错误”:{“代码”:“ 0x80040800”,“消息”:“”检索“方法不支持类型为'roletemplate'的实体。“}}

[有人可以建议我如何列出所有实体记录,例如officedocument实体,并获取上述roletemplate记录的完整JSON吗?

dynamics-crm dynamics-365 dynamics-crm-365 dynamics-crm-webapi
1个回答
0
投票

如果不允许/不支持,则表示我们不能那样做。因此,如果您需要该实体,请使用将Web api与fetchxml结合使用的解决方法。

https://crmdev.crm.dynamics.com/api/data/v9.1/roletemplates?fetchXml=<fetch> <entity name="roletemplate" > <attribute name="name" /> <attribute name="roletemplateid" /> </entity> </fetch>

清除查询如下:

<fetch>
  <entity name="roletemplate" >
    <attribute name="name" />
    <attribute name="roletemplateid" />
  </entity>
</fetch>
© www.soinside.com 2019 - 2024. All rights reserved.