I want emails which are received before a particular date.
I use following : https://graph.microsoft.com/v1.0/users/*email*/mailfolders/Archive/messages?$filter=ReceivedDateTime lt 2020-04-01
I have manually checked the 'Archive' folder and there are many emails which are received before 2020-04-01.
My application will automatically run this query every 5 min.
While testing, I found that once the app started it run 12 times (1 hour) and also gave correct output, however all subsequent calls are giving NULL output.
I get following JSON response:
<?xml version = "1.0" encoding = "UTF-8"?>
<ns0:RESTOutput xmlns:ns0 = "xxx">
<StatusCode>200</StatusCode>
<msg></msg>
</ns0:RESTOutput>
Please suggest.