Outlook REST API Greater than filter is the same as Greater or Equal

Hi, 

It seems like a bug in Outlook API the followings requests return the same data

https://outlook.office365.com/api/v1.0/me/messages?$filter=DateTimeReceived ge 2015-04-22T10:08:00Z

https://outlook.office365.com/api/v1.0/me/messages?$filter=DateTimeReceived gt 2015-04-22T10:08:00Z

But I expect that the second request will return blank result because condition Greater Than and I have only one email in mailbox.

Could anyone explain me why condition Greater Than doesn't work? 

P.S.: Same post on community.office365.com 

April 23rd, 2015 10:27am

This is a known issue that we're working on improving. I am guessing that the one email in your inbox has a DateTimeReceived value of 2015-04-22T10:08:00Z when retrieved via REST? The problem is that the value in Exchange is actually at a higher resolution. It include milliseconds. So in all likelihood the *real* value is 2015-04-22T10:08:00.nnnZ, where 'nnn' is non-zero. So it is really greater than 2015-04-22T10:08:00Z. If you increase the value in your filter by 1 second, you shouldn't get back any results.
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2015 10:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics