【发布时间】:2019-07-27 12:20:19
【问题描述】:
当我有以下 FetchXml 时,如何应用 distinct='true'?它是否仅引用主实体记录,是否应该返回一条记录?或者给定 4 个与链接实体过滤器匹配的链接实体记录,它是否应该返回 4 条记录(即不同性是否应指完整的查询)?
我无法找到任何涵盖此内容的文档,也没有在 SO 上找到任何类似内容。
<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
<entity name='primary-entity'>
<attribute name='primary-entity-id />
<attribute name='an-attribute'/>
<filter type='and'>
<condition attribute='an-attribute' operator='eq' value='something' />
</filter>
<link-entity name='linked-entity' from='primary-entity' to='primary-entity-id' alias='le'>
<filter type='and'>
<condition attribute='an-attribute' operator='in'>
<value>1</value>
<value>2</value>
<value>3</value>
<value>4</value>
</condition>
</filter>
</link-entity>
</entity>
</fetch>
【问题讨论】:
标签: dynamics-crm distinct fetchxml