【发布时间】:2017-05-02 02:13:30
【问题描述】:
我们在 fetchXML 下面有这个,我有一个小问题想知道如何将这个和语句添加到 WHERE 子句中:
and ip.pcssu_quantityavailable >= sod.quantity - sod.quantityshipped 到 fetchXML?
<fetch mapping="logical" version="1.0">
<entity name="SalesOrder">
<attribute name="ordernumber" />
<attribute name="statuscode" />
<attribute name="statuscodename" />
<attribute name="pcssu_stockavailable" />
<filter>
<condition attribute="statuscode" operator="eq" value="141560004" />
</filter>
<link-entity name="SalesOrderDetail" from="salesorderid" to="salesorderid" alias="sod" link-type="inner">
<attribute name="productidname" />
<attribute name="quantity" />
<attribute name="quantityshipped" />
<link-entity name="pcssu_inventoryproduct" from="pcssu_product" to="productid" alias="ip" link-type="inner">
<attribute name="pcssu_quantityavailable" />
</link-entity>
</link-entity>
<link-entity name="account" from="accountnumber" to="pcssu_servicecentrecode" alias="a" link-type="inner" />
</entity>
</fetch>
【问题讨论】:
标签: dynamics-crm crm fetchxml