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

  • Question

  • I am trying the following request using microsoft graph:

    https://graph.microsoft.com/v1.0/users/admin@test.com/messages

    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)

    https://graph.microsoft.com/v1.0/users/admin@test.com/messages?$orderby=receivedDateTime+ASC

    But the following API call returns the same 5002 emails

    https://graph.microsoft.com/v1.0/users/admin@test.com/messages?$orderby=receivedDateTime+DESC
    Is there any restrictions / issues with Graph API?


    Thursday, June 7, 2018 2:45 PM