微软 crm开发笔记 创建查询条件,生成Fetch.XML文件

创建查询条件,生成Fetch.XML文件

 微软 crm开发笔记 创建查询条件,生成Fetch.XML文件

可生成:

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

  <entity name="opportunityproduct">

    <attribute name="productid" />

    <attribute name="productdescription" />

    <attribute name="priceperunit" />

    <attribute name="quantity" />

    <attribute name="extendedamount" />

    <attribute name="opportunityproductid" />

    <order attribute="productid" descending="false" />

    <filter type="and">

      <condition attribute="foton_vehiclecode" operator="null" />

    </filter>

    <link-entity name="product" from="productid" to="productid" alias="aa">

      <filter type="and">

        <condition attribute="foton_externalmaterialcode" operator="eq" value="P010" />

      </filter>

    </link-entity>

  </entity>

</fetch>

类型数据

参考:

Javascript例子:CRM Dev\Extensions\Foton.WebResources\Scripts\foton_Oppty.js