entity 元素

指定 提取元素的子元素,即查询的“父实体”。 只允许一个实体。

了解如何使用 FetchXml 查询数据

Example

<fetch>
  <entity name='account'>
    <attribute name='accountclassificationcode' />
    <attribute name='createdby' />
    <attribute name='createdon' />
    <attribute name='name' />
  </entity>
</fetch>

特性

Name Required? Description
name 是的 查询所基于的表的逻辑名称。

父元素

Name Description
获取 FetchXml 查询的根元素。

子元素

Name 事件 Description
all-attributes 0 或 1 指示返回每行的所有非 null 列值。 它与不添加任何 属性元素相同。 对于大多数情况,我们不建议使用此元素。
属性 0 或多 指定要使用查询返回的 实体链接实体 中的列。
order 0 或多 指定结果行的排序顺序。
link-entity 0 或多 联接与 实体链接实体 相关的表,以返回包含结果的更多列。
滤波器 0 或 1 为要应用于查询的 实体链接实体 指定复杂条件。