首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Execute XML xrmtoolbox for Dynamics 365获取错误“给定键在字典中不存在”

Execute XML xrmtoolbox for Dynamics 365获取错误“给定键在字典中不存在”
EN

Stack Overflow用户
提问于 2020-02-04 12:05:05
回答 1查看 133关注 0票数 0

我想在我的Dynamics 365中创建一个视图,但我不能在系统中过滤,所以我使用XRMToolBox来获取XML并对其进行自定义。下面是我的代码:

代码语言:javascript
复制
<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>

当我执行的时候,出现了这个错误信息。

有人能告诉我为什么会这样吗?

EN

回答 1

Stack Overflow用户

发布于 2020-02-06 00:12:26

这是那个特定的XrmToolBox插件的一些问题。复制了查询并在FetchXML生成器中进行了测试。

除了这些attributes之外,其他的都很好&成功地解析了。这些可能是自定义属性,它们缺少前缀,如new_或其他特定于发布者的属性。

代码语言:javascript
复制
  <attribute name="estimatedgrossprofit" />
  <attribute name="objections" />
  <attribute name="escalationstrategy" />
  <attribute name="conversionstrategy" />
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60050419

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档