【问题标题】:Dynamics 365 CRM reportsDynamics 365 CRM 报告
【发布时间】:2020-06-22 02:07:36
【问题描述】:

我使用 crm 中的开箱即用报告向导在 Dynamics 365 crm 中创建了一个报告。该报告是有效、已解决或已取消的案例。报告显示案例解决字段。但是,当重新激活已解决的案例然后再次解决时,它会在报告中显示该案例的 2 个条目。有没有办法在报告中只显示最新的案例解决方案?

【问题讨论】:

    标签: dynamics-crm dynamics-crm-online


    【解决方案1】:

    您获得重复/两次,并且可能更多记录案例原因是案例解决是 Dynamics 中的一个实体,每次您解决案例时,请注意仅解决案例您将为该实体创建记录。 因此,如果您解决并重新打开和解决大约 10 次,您将在报告中看到 10 次条目。

    既然我们有背景,为什么我们会得到重复记录,如何解决它?

    我相信您知道带有报告扩展的 D365 fetchxml 报告。如果不是以下几个链接。

    SSRS Report Tutorial

    您可以选择在 Visual Studio w.r.t Report 中编辑您的报告。

    在您的报告中,您将拥有 Fetchxml,它应该如下所示。重要创建时应按 Desc 排序,而 fetchxml 应不同。

    Fetchxml 你可能已经得到了结果

    <fetch>
      <entity name="incident" >
        <attribute name="statuscode" />
        <attribute name="title" />
        <attribute name="statecode" />
        <link-entity name="incidentresolution" from="incidentid" to="incidentid" link-type="outer" alias="Resolution" >
          <attribute name="subject" alias="ResolutionSubject" />
          <attribute name="createdon" alias="Resolutioncreatedon" />
          <order attribute="createdon" descending="true" />
        </link-entity>
      </entity>
    </fetch>
    

    Fetchxml 你需要

    <fetch distinct="true" mapping="logical" >
      <entity name="incident" >
        <attribute name="statuscode" />
        <attribute name="title" />
        <attribute name="statecode" />
        <attribute name="incidentid" alias="Id" />
        <link-entity name="incidentresolution" from="incidentid" to="incidentid" link-type="outer" alias="Resolution" >
          <attribute name="subject" />
          <attribute name="activityid" />
        </link-entity>
      </entity>
    </fetch>
    

    现在在 Visual Studio 中,您需要根据您的 Incident Id 隐藏 Row,该事件 ID 是在解决日期后创建的。

    【讨论】:

    • @Ravinder Yadav 有帮助吗?如果是,请您将其标记为已解决。
    猜你喜欢
    • 1970-01-01
    • 2019-08-12
    • 1970-01-01
    • 1970-01-01
    • 2019-02-25
    • 2011-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多