0

我知道这是一个广泛的问题,我只是无法理解它。我创建了一个报告,它为特定的销售人员提取客户详细信息。即使在 CRM 上填写了地址复合字段,我也会返回有地址的客户和一些没有地址的客户。没有我用来拉地址日期的公式/表达式。只需获取字段并显示。你能帮我吗,给我一些关于在 CRM 中检查/注意什么的指示。

更新 1:

<fetch distinct="false" no-lock="false" mapping="logical">
<entity name="activitypointer" enableprefiltering="1" prefilterparametername="CRM_FilteredActivityPointer">
    <attribute name="scheduledstart" alias="scheduledstart" />
    <attribute name="subject" alias="subject" />
    <attribute name="regardingobjectid" alias="regardingobjectid" />
    <attribute name="description" alias="description" />
    <attribute name="activityid" />
    <attribute name="ownerid" alias="ownerid" />
    <attribute name="activitytypecode" />
    <attribute name="actualstart" alias="actualstart" />
    <attribute name="actualdurationminutes" alias="actualdurationminutes" />
    <attribute name="actualend" alias="actualend" />
    <link-entity name="opportunity" to="regardingobjectid" from="opportunityid" link-type="outer" alias="LE_3c8631e7bcbe64b3de96e66789a47536">
        <attribute name="customerid" alias="LE_3c8631e7bcbe64b3de96e66789a47536_customerid" />
        <attribute name="schedulefollowup_qualify" alias="LE_ad91c354eb5a26b004de4d41b2c3d454_schedulefollowup_qualify" />
        <attribute name="new_accounttype" alias="LE_54d761d89ac278139a6836de7c3607db_new_accounttype" />
        <attribute name="new_neworexisiting" alias="LE_5db2d6da9e43bd44c8949cb912432cba_new_neworexisiting" />
        <attribute name="new_accaddresscomposite" alias="LE_c6b3b5d2a9364c90878a5d147b97b866_new_accaddresscomposite" />
        <attribute name="parentaccountid" alias="LE_b7d5c9432034544323d9170db9688778_parentaccountid" />
        <attribute name="actualclosedate" alias="LE_3d1bcadc4e9010d6d4689ded2531d68a_actualclosedate" />
    </link-entity>
    <link-entity name="account" to="regardingobjectid" from="accountid" link-type="outer" alias="LE_d08b5ac0b1b1a422353a6d092b699986">
        <attribute name="name" alias="LE_d08b5ac0b1b1a422353a6d092b699986_name" />
    </link-entity>
    <link-entity name="account" to="regardingobjectid" from="accountid" link-type="outer" alias="LE_b6831392115770835cce64e99a59be4a">
        <attribute name="address1_composite" alias="LE_b6831392115770835cce64e99a59be4a_address1_composite" />
    </link-entity>
        <link-entity name="new_visit" to="regardingobjectid" from="new_visitid" link-type="outer" alias="LE_041a4de02adecc6816a3be5b9389d9ac">
        <attribute name="new_tmpdurationmins" alias="LE_041a4de02adecc6816a3be5b9389d9ac_new_tmpdurationmins" />
    </link-entity>
    <link-entity name="new_visit" to="regardingobjectid" from="new_visitid" link-type="outer" alias="LE_0238625bc02c72e091b42d4c6ece34e5">
        <attribute name="new_arriveddatetime" alias="LE_0238625bc02c72e091b42d4c6ece34e5_new_arriveddatetime" />
    </link-entity>
</entity>

4

1 回答 1

0

作为第一个调整,我建议您将这些单独的link-entity连接合并account为一个:

当前加入帐户:

<link-entity name="account" to="regardingobjectid" from="accountid" link-type="outer" alias="LE_d08b5ac0b1b1a422353a6d092b699986">
  <attribute name="name" alias="LE_d08b5ac0b1b1a422353a6d092b699986_name" />
</link-entity>
<link-entity name="account" to="regardingobjectid" from="accountid" link-type="outer" alias="LE_b6831392115770835cce64e99a59be4a">
  <attribute name="address1_composite" alias="LE_b6831392115770835cce64e99a59be4a_address1_composite" />
</link-entity>

提议的改变:

<link-entity name="account" to="regardingobjectid" from="accountid" link-type="outer" alias="LE_d08b5ac0b1b1a422353a6d092b699986">
  <attribute name="name" alias="LE_d08b5ac0b1b1a422353a6d092b699986_name" />
  <!-- move the address1_composite field here -->
  <attribute name="address1_composite" alias="LE_d08b5ac0b1b1a422353a6d092b699986_composite" />
</link-entity>

这至少应该为所有帐户字段产生一致的行为,但如果使用 activitypointer 作为报告的根实体是正确的方法,它仍然保持打开状态。这取决于您的报告业务逻辑/用户故事。

您可以通过用简单的语言编写报告来验证这一点:“对于所有活动,请向我展示...”“对于所有机会,请向我展示...”“对于所有客户,请向我展示...”

测试您的报告 FetchXml 查询的一个好方法是使用包含在Xrm Toolbox中的 FetchXmlTester 。

于 2015-06-03T08:18:18.967 回答