Microsoft Graph doesn't return all emails present in user's mailbox RRS feed

  • Question

  • I am trying the following request using microsoft graph:

    As per the documentation, this should return all emails under a user, which is working as expected for majority of users.

    For some users it is not working, for my case a user has around 16000+ emails in his mailbox (inclusive of Junk Emails, Deleted Items). But the above call returns only 5002 emails and completes the API call. The last batch returns the latest email.

    If I try the following call it doesn't return anything (0 emails returned)$orderby=receivedDateTime+ASC

    But the following API call returns the same 5002 emails$orderby=receivedDateTime+DESC
    Is there any restrictions / issues with Graph API?

    Thursday, June 7, 2018 2:45 PM