我想在我的 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>
当我执行时,出现了这个错误消息。
谁能帮我为什么会这样?