What is the correct syntax for filtering emails by date and size in EWS SOAP queries?
For date-based searches, the correct format is Year/Month/Day. For example, filtering emails sent between January 1, 2021 and December 30, 2021 uses `sent:>=2021/1/1 AND sent:<=2021/12/30`. For size-based filtering, use `size:<2000` but note that the less-than sign must be XML-escaped as `<`, so the actual query string becomes `size:<2000`. These syntax details are crucial when building SOAP XML messages manually.
SOAP XML querydate filtersize filterXML escapingExchange Web Service