【问题标题】:MS CRM Online : Get records where there no associated recordMS CRM Online:获取没有关联记录的记录
【发布时间】:2016-04-26 07:59:47
【问题描述】:

由于我的 CRM 在线,需要帮助想要获取联系人与获取 xml 报告中的帐户没有关联的帐户记录。 在高级查找中尝试过,但无法获取。

谢谢, 普里亚

【问题讨论】:

    标签: reporting-services dynamics-crm dynamics-crm-online dynamics-crm-2015


    【解决方案1】:

    这是一个 FetchXML,告诉您帐户未与联系人关联

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
      <entity name="account">
        <attribute name="name" />
        <attribute name="primarycontactid" />
        <attribute name="telephone1" />
        <attribute name="accountid" />
        <order attribute="name" descending="false" />
        <filter type="and">
          <condition attribute="primarycontactid" operator="null" />
        </filter>
      </entity>
    </fetch>
    

    【讨论】:

    • 谢谢...它按预期工作。我需要案例和自定义实体之间的场景。案例和习惯具有 1 对 N 的关系。有什么办法也可以做到这一点。
    • 老实说,从该搜索返回的帐户可能与联系人相关联,但这些帐户没有主要联系人。
    • 这个答案不正确。在 Dynamics CRM 中,使用 Fetch XML 根本无法满足要求。
    • 她只想要 FetchXML 什么都不想要作为模板。不是这样的
    • 感谢大家抽出宝贵时间,因为 fetch xml 不起作用。当自定义实体记录与我将标志设置为真的情况相关联时,我已经在情况下创建了自定义标志。当所有关联记录都被删除时,使用自定义工作流将标志设为 false。
    【解决方案2】:
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
      <entity name="incident">
        <attribute name="title" />
        <attribute name="ticketnumber" />
        <attribute name="createdon" />
        <attribute name="incidentid" />
        <attribute name="caseorigincode" />
        <order attribute="title" descending="false" />
        <filter type="and">
          <condition attribute="customerid" operator="null" />
        </filter>
      </entity>
    </fetch>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-04
      • 2022-12-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多