我正在尝试在 crm 2011 上的 fetchxml 中创建一个报告,该报告显示帐户名称列表,并且在同一行中仅显示该帐户最近活动的日期。
所以
报告应该看起来像
Account1, Date of most recent activity for Account 1
Account2, Date of most recent activity for Account 2
Account3, Date of most recent activity for Account 3
我有一个提取正确数据的提取查询,但它为帐户的每个活动提取一行,而不仅仅是最新的活动。
所以看起来像
Account1, Date of most recent activity for Account 1
Account1, Date of other activity for Account 1
Account2, Date of most recent activity for Account 2
Account2, Date of other activity for Account 2
Account3, Date of most recent activity for Account 3
这是我的获取
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" aggregate="false">
<entity name="<accountentityname>"
<attribute name="<accountname>" />
<link-entity name="activity" from="<regardingaccoutnfield>" to="<account field>" visible="false" link-type="outer">
<attribute name="<date of activity>" />
</link-entity>
</entity>
</fetch>
有什么建议么?
谢谢。