简体   繁体   中英

Microsoft graph api - outlook - Returns only latest mails

The microsoft graph api for outlook https://graph.microsoft.com/v1.0/me/messages does not return all of the mails from the mailbox. And how to get mails between specific intervals of time.

You can use $filter clause to filter emails by date and time.

By date

GET https://graph.microsoft.com/v1.0/me/messages?$filter=ReceivedDateTime ge 2021-05-07 and receivedDateTime lt 2021-05-10

By date and time

GET https://graph.microsoft.com/v1.0/me/messages?$filter=ReceivedDateTime ge 2021-05-07T08:00:00Z and receivedDateTime lt 2021-05-07T12:00:00Z

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM