Bvr*_*rce 5 fetchxml dynamics-crm-2011
是否可以在视图中显示嵌套链接实体的字段?
我有3个实体:统计信息,帐户和地址.统计信息具有对帐户的查找,并且帐户具有查找地址.我想在Statistics视图中显示所有这些实体的字段.
我试过这个并收到错误:要使用此保存的视图,您必须删除引用已删除或无法搜索的项目的条件和列.
<savedquery>
<IsCustomizable>1</IsCustomizable>
<CanBeDeleted>1</CanBeDeleted>
<isquickfindquery>0</isquickfindquery>
<isprivate>0</isprivate>
<isdefault>0</isdefault>
<returnedtypecode>10008</returnedtypecode>
<savedqueryid>{df101ac4-2e4d-e311-9377-005056bd0001}</savedqueryid>
<layoutxml>
<grid name="resultset" object="10008" jump="sl_name" select="1" preview="1" icon="1">
<row name="result" id="sl_statisticsid">
<cell name="sl_amount" width="100" />
<cell name="sl_date" width="100" />
<cell name="sl_debtor" width="100" />
<cell name="sl_divisioncode" width="100" />
<cell name="sl_source" width="100" />
<cell name="sl_statstype" width="100" />
<cell name="relatedAccount.wl_towncity" width="100"/>
<cell name="relatedAccount.relatedAddress.wl_city" width="100" />
</row>
</grid>
</layoutxml>
<querytype>0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="sl_statistics">
<order attribute="sl_amount" descending="false" />
<attribute name="sl_statstype" />
<attribute name="sl_source" />
<attribute name="sl_divisioncode" />
<attribute name="sl_debtor" />
<attribute name="sl_date" />
<attribute name="sl_amount" />
<link-entity name="account" from="accountid" to="sl_debtor" alias="relatedAccount">
<attribute name="wl_towncity" />
<link-entity name="wl_postalcode" from="wl_postalcodeid" to="wl_postaltowncity" alias="relatedAddress">
<attribute name="wl_city" />
</link-entity>
</link-entity>
<attribute name="sl_statisticsid" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="Statistics and Address" languagecode="1033" />
</LocalizedNames>
</savedquery>
Run Code Online (Sandbox Code Playgroud)
如果删除此行,则视图有效:
<cell name="relatedAddress.wi_city" width="100" disableSorting="0" />
Run Code Online (Sandbox Code Playgroud)
有谁知道如何从GridXML中的嵌套链接实体引用元素?
我也试过这个违规行:
<cell name="relatedAccount.relatedAddress.wi_city" width="100" disableSorting="0" />
Run Code Online (Sandbox Code Playgroud)
它开始看起来像是不可能有一个显示来自嵌套链接实体的字段的视图.