【发布时间】:2018-05-14 14:33:05
【问题描述】:
我需要在state not open 中获取所有有电话的帐户,所以我创建了一个关于 fetch 的查询并得到了一些结果。
在检查我的结果后,我发现我得到了所有至少有 1 个电话未打开的帐户,但我需要获得 所有他们连接的电话未打开的帐户(可以' t 甚至 1 处于打开状态)是否可以通过 fetch 来完成?
** NOT OPEN 是指已取消或已完成的状态。
这是我的获取查询:
@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
<entity name='account'>
<attribute name='name' />
<order attribute='accountamount' descending='true' />
<link-entity name='phonecall' from='regardingobjectid' to='accountid' alias='ab'>
<filter type='and'>
<condition attribute='statecode' operator='ne' value='0' />
</filter>
</link-entity>
</entity>
</fetch>";
【问题讨论】:
-
请显示您尝试的查询..
-
@ArunVinoth 我把它添加到我的问题中
标签: filter dynamics-crm fetch dynamics-crm-2016 fetchxml