View 显示不使用';我没有联系
我想创建两个视图。 -一个视图显示所有具有联系人的帐户。这很容易。我对此没有任何异议。 -显示所有帐户没有任何联系人的第二视图。 因为我们不能预先为第二次查看指定这样的条件。我们是否可以使用视图来实现这一点 我不想创建SSRS报告或任何自定义开发View 显示不使用';我没有联系,view,dynamics-crm,dynamics-crm-2013,View,Dynamics Crm,Dynamics Crm 2013,我想创建两个视图。 -一个视图显示所有具有联系人的帐户。这很容易。我对此没有任何异议。 -显示所有帐户没有任何联系人的第二视图。 因为我们不能预先为第二次查看指定这样的条件。我们是否可以使用视图来实现这一点 我不想创建SSRS报告或任何自定义开发 请告诉我这是否可以实现。您只能通过修改帐户实体自定义xml来实现 为帐户创建一个新的(系统)视图,并将其命名为“无联系人的活动帐户” 创建用于导出的(非托管)解决方案,并添加没有任何依赖项的帐户实体 导出解决方案并解压缩zip存档 使用您选择的编辑器打
请告诉我这是否可以实现。您只能通过修改帐户实体自定义xml来实现
...
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="account">
<attribute name="accountid" />
<order attribute="name" descending="false" />
</entity>
</fetch>
</fetchxml>
<IntroducedVersion>1.0.0.0</IntroducedVersion>
<LocalizedNames>
<LocalizedName description="Active Accounts without Contacts" languagecode="1033" />
</LocalizedNames>
<Descriptions>
<Description description="Active Accounts without Contacts" languagecode="1033" />
</Descriptions>
...
。。。
1.0.0.0
...
之后
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="account">
<attribute name="accountid" />
<order attribute="name" descending="false" />
<link-entity name="contact" from="parentcustomerid" to="accountid" link-type="outer"/>
<filter type="and">
<condition attribute="parentcustomerid" operator="null" />
</filter>
</entity>
</fetch>
</fetchxml>
<IntroducedVersion>1.0.0.0</IntroducedVersion>
<LocalizedNames>
<LocalizedName description="Active Accounts without Contacts" languagecode="1033" />
</LocalizedNames>
<Descriptions>
<Description description="Active Accounts without Contacts" languagecode="1033" />
</Descriptions>
...
1.0.0.0
...
最后,重新打包解决方案,导入并发布。我无法实现这一点,经过相当多的“修补”后,对fetchxml进行了如下修改,它成功了!我基本上将过滤器移动到链接实体细节之前。这是CRM2013上的汇总1
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >
<entity name="account" >
<attribute name="address1_city" />
<filter type="and" >
<condition entityname="contact" attribute="parentcustomerid" operator="null" />
</filter>
<link-entity name="contact" from="parentcustomerid" to="accountid" link-type="outer" />
<attribute name="primarycontactid" />
<order attribute="name" descending="false" />
<attribute name="telephone1" />
<attribute name="accountid" />
</entity>
</fetch>
Dynamics CRM 2013提供了fetchXML遗漏联接,因此理论上系统能够定义一个显示没有联系人的帐户的视图。