How to create request with OR for different fields in AIF Soap UI

74 Views Asked by At

I have webservice AIF from Dynamics AX 2012 which return information from CustTable. How can I write request that return me information about Customers with AccountNum "1111" OR Blocked "NO". How can I write query with OR condition? If I write something like this I receive AND condition.

<quer:QueryCriteria>
    <quer:CriteriaElement>
        <quer:DataSourceName>CustTable</quer:DataSourceName>
        <quer:FieldName>AccountNum</quer:FieldName>
        <quer:Operator>Equal</quer:Operator>
        <quer:Value1>1111</quer:Value1>   
        <quer:Value2></quer:Value2>
    </quer:CriteriaElement>
    <quer:CriteriaElement>
        <quer:DataSourceName>CustTable</quer:DataSourceName>
        <quer:FieldName>Blocked</quer:FieldName>
        <quer:Operator>Equal</quer:Operator>
        <quer:Value1>no</quer:Value1>   
        <quer:Value2></quer:Value2>
    </quer:CriteriaElement>
</quer:QueryCriteria>
0

There are 0 best solutions below