【问题标题】:FetchXML Understanding DistinctFetchXML 理解不同
【发布时间】:2018-11-09 15:06:27
【问题描述】:

我正在学习 FetchXML,目前是新手。

我尝试查看位于 here 的文档,但没有发现它很有帮助

这行是什么意思:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">

mapping="logical" 部分是什么意思? distinct="true" 部分是什么意思?

【问题讨论】:

    标签: dynamics-crm fetchxml


    【解决方案1】:

    根据FetchXML schema,我们有两个枚举值,即映射属性的内部和逻辑值。我们必须在查询中使用mapping="logical",内部可能用于平台使用(我的猜测)。

        <xs:attribute name="mapping">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="internal" />
              <xs:enumeration value="logical" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
    

    distinct="true" 将删除结果集中的重复值。这类似于 SQL 的概念。

    Refer & read the documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-07
      • 2019-04-12
      • 1970-01-01
      • 2010-11-15
      • 1970-01-01
      相关资源
      最近更新 更多