<?xml version="1.0" encoding="UTF-8"?> <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="entity1"> <attribute name="name"/> <link-entity name="entity2" from="entity2id" to="entity1id"> <attribute name="name"/> </link-entity> </entity> </fetch>
alias & link-type 查询语法中缺少。
alias
link-type
<link-entity name="entity2" from="entity2id" to="entity1id" alias="xyz" link-type="inner" >
另一方面,我建议您使用 Xrmtoolbox FetchXML builder