【发布时间】:2019-08-31 19:30:30
【问题描述】:
场景:我在 Dynamics CRM 中有一个关于订单类型的文本字段。该字段与其他一些系统集成,它只接受已经声明的值列表;比如 ABC、IJK、XYZ 等。现在我可以使用高级查找来查询该字段是否包含数据。
现在在报告中,我有一个参数,它具有所有这些可能的值和一个附加的“不包含数据”,它的值是空字符串。我还为多选启用了此报告参数。但是,如果从报告参数中选择任何值,我将无法获取订单。
以下是我的 FetchXML 查询,请让我知道我在下面缺少什么。
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="invoicedetail">
<attribute name="productid" />
<attribute name="invoicedetailid" />
<attribute name="tv_ordertype" />
<order attribute="productid" descending="false" />
<filter type="and">
<condition attribute="tv_ordertype" operator="in" value="@Order_Types" />
</filter>
</entity>
</fetch>
【问题讨论】:
标签: filter dynamics-crm-2011 fetchxml