0

我正在创建 CRM 2011 Fetch-xml 报告并希望获取那些在过去 24 小时内活动已更改或创建的联系人。我怎样才能做到这一点。

4

1 回答 1

2

首先检索所有联系人,然后内部加入活动,然后添加一个条件以仅在过去 24 小时内修改这些活动。

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
  <entity name="contact">
    <attribute name="fullname" />
    <attribute name="telephone1" />
    <attribute name="contactid" />
    <order attribute="fullname" descending="false" />
    <link-entity name="activitypointer" from="regardingobjectid" to="contactid" alias="ac">
      <filter type="and">
        <condition attribute="modifiedon" operator="last-x-hours" value="24" />
      </filter>
    </link-entity>
  </entity>
</fetch>
于 2014-02-01T13:16:09.247 回答