【问题标题】:Report on accounts with no open activities in CRM 2015报告 CRM 2015 中没有未结活动的帐户
【发布时间】:2016-03-01 21:59:46
【问题描述】:

我正在为“电话类型的帐户没有未结活动”创建报告,提前找到。我能够获得具有已完成电话类型活动的帐户列表,但不能获得根本没有活动的帐户。

我尝试分配活动类型并且主题不包含数据,它仍然无法获取没有活动的帐户。

在下图中,你会看到我使用的过滤器,

No Open Activity image

【问题讨论】:

    标签: dynamics-crm-2011 dynamics-crm crm


    【解决方案1】:

    您应该尝试使用如下查询:

        <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
      <entity name="account">
        <attribute name="name" />
        <attribute name="primarycontactid" />
        <attribute name="telephone1" />
        <attribute name="accountid" />
        <order attribute="name" descending="false" />
        <link-entity name="activityparty" from="partyid" to="accountid" alias="ae" link-type="outer">
          <link-entity name="activitypointer" from="activityid" to="activityid" alias="af" link-type="outer">
            <filter type="and">
              <condition attribute="activitytypecode" operator="eq" value="4210" />
            </filter>
          </link-entity>
        </link-entity>
        <filter type="and">
            <condition entityname="af" attribute="activityid" operator="null" />
        </filter>
      </entity>
    </fetch>
    

    代码基于以下文章 - https://msdn.microsoft.com/en-us/library/dn531006.aspx

    【讨论】:

      【解决方案2】:

      高级查找不支持左外连接。您将不得不使用像 Andrii 发布的那样的自定义查询。

      编辑:如果您想使用自定义 fetchXml 运行您的报告,可以使用 SQL Server 数据工具的Reporting Authoring extensions。您可以在那里复制并粘贴您的 fetchXml,然后将报告上传到 CRM。

      【讨论】:

      • 您好,我已经通过提前查找下载了 fetch xml,并根据需要修改了查询。现在我如何把它放回去/将文件导入系统?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多