【发布时间】:2021-01-08 13:40:10
【问题描述】:
使用下面的 fetchxml,它只会拉出绑定了帐户的联系人。我想提取绑定了帐户的联系人[如果是帐户名称],还想提取没有绑定帐户的联系人。我有外部连接,但它仍然不起作用。下面的 fetchxml 仅提取绑定了帐号的联系人,而不是所有没有帐户信息的活动联系人。
<fetch top="50" >
<entity name="contact" >
<attribute name="emailaddress1" />
<attribute name="lastname" />
<attribute name="firstname" />
<attribute name="accountidname" />
<attribute name="accountid" />
<filter type="and" >
<condition attribute="statecode" operator="eq" value="1" />
</filter>
<link-entity name="account" from="accountid" to="accountid" link-type="outer" >
<attribute name="name" />
</link-entity>
</entity>
</fetch>
【问题讨论】:
-
fetchxml 看起来是正确的,使用 FetchXML Builder(它是一个 XrmToolBox 工具)进行测试,看看您是否看到检索到的数据正确
标签: dynamics-crm microsoft-dynamics fetchxml