【发布时间】:2019-04-02 15:44:32
【问题描述】:
我正在为 Dynamics CRM 构建 SSRS 报告,因此我必须使用 FetchXml。例如,我有 10 个帐户,我必须从第二个查询中减去 5 个帐户。
我准备了2个fetchxml报告参数:
10 个帐户的 CRM_FilteredAccount
CRM_FilteredAccountNeg 我必须减去的帐户
我有如下所示的数据集。
到目前为止的数据集:
<fetch distinct="false" useraworderby="false" no-lock="false" mapping="logical" >
<entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount" >
<attribute name="name" alias="name" />
</entity>
</fetch>
(不工作)具有不同参数的链接实体的数据集:
<fetch distinct="false" useraworderby="false" no-lock="false" mapping="logical" >
<entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount" >
<attribute name="name" alias="name" />
<link-entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccountNeg" from="accountid" to="accountid" link-type="outer" alias="neg" >
<filter>
<condition entityname="neg" attribute="accountid" operator="null" />
</filter>
</link-entity>
</entity>
</fetch>
我预计第一个过滤器参数会给出 10 个帐户的结果。 然后使用带有第二个过滤器参数的链接实体给出仅剩下 5 个帐户的结果。
【问题讨论】:
标签: reporting-services visual-studio-2015 fetchxml xrm