我想在我的Dynamics 365中创建一个视图,但我不能在系统中过滤,所以我使用XRMToolBox来获取XML并对其进行自定义。下面是我的代码:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" >
<entity name="opportunity" >
<attribute name="name" />
<attribute name="estimatedclosedate" />
<attribute name="parentaccountid" />
<attribute name="estimatedgrossprofit" />
<attribute name="objections" />
<attribute name="escalationstrategy" />
<attribute name="conversionstrategy" />
<order attribute="estimatedclosedate" descending="false" />
<link-entity name="connection" from="record2id" to="opportunityid" alias="MyConnections" >
<link-entity name="connectionrole" from="connectionroleid" to="record1roleid" alias="salesteamcategory" />
</link-entity>
<filter type="or" >
<filter type="and" >
<condition attribute="ownerid" operator="eq-userid" />
<condition attribute="statecode" operator="eq" value="0" />
</filter>
<filter type="and" >
<condition entityname="connection" attribute="record1id" operator="eq-userid" />
<condition entityname="connection" attribute="statecode" operator="eq" value="0" />
<condition entityname="connectionrole" attribute="category" operator="eq" value="1001" />
</filter>
</filter>
<attribute name="modifiedon" />
<attribute name="estimatedvalue" />
<attribute name="opportunityid" />
</entity>
</fetch>当我执行的时候,出现了这个错误信息。

有人能告诉我为什么会这样吗?
发布于 2020-02-06 00:12:26
这是那个特定的XrmToolBox插件的一些问题。复制了查询并在FetchXML生成器中进行了测试。
除了这些attributes之外,其他的都很好&成功地解析了。这些可能是自定义属性,它们缺少前缀,如new_或其他特定于发布者的属性。
<attribute name="estimatedgrossprofit" />
<attribute name="objections" />
<attribute name="escalationstrategy" />
<attribute name="conversionstrategy" />https://stackoverflow.com/questions/60050419
复制相似问题