为Dynamics 365执行XML xrmtoolbox出现错误“字典中不存在给定键”

问题描述 投票:0回答:1

我想在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>

当我执行时,这Error Message出现。

谁能帮助我为什么会这样

xml dynamics-crm microsoft-dynamics fetchxml xrmtoolbox
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.