[英]Execute XML xrmtoolbox for Dynamics 365 getting error "The given key was not present in the dictionary"
我想在我的 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>
當我執行時,出現此錯誤消息。
誰能幫助我為什么會這樣?
這是特定 XrmToolBox 插件的一些問題。 復制查詢並在 FetchXML 構建器中測試。
除了這些attributes
,其他一切都很好並成功解析。 這些可能是自定義屬性,並且它們缺少前綴,例如new_
或某些其他特定於發布者的屬性。
<attribute name="estimatedgrossprofit" />
<attribute name="objections" />
<attribute name="escalationstrategy" />
<attribute name="conversionstrategy" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.