Developer Q&A

Ask a Question
Back to All

What is the correct xml for a date field conditionexpression?

I am retrieving a set of WordOrders using RetriveMultiple(). What Is the XML I need to filter by a date range? I tried something like this, but the filter is not working.

<ns0:ConditionExpression>
          <ns0:PropertyName>DtCreated</ns0:PropertyName>
          <ns0:Operator>GreaterThan</ns0:Operator>
          <ns0:Values>
            <ns0:anyType xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:time">00:00:00</ns0:anyType>
          </ns0:Values>
        </ns0:ConditionExpression>