Microsoft Graph API:过滤某个时间范围内的电子邮件

Kes*_*shi 4 office365 microsoft-graph-api

我没有看到支持从 Graph API 过滤电子邮件列表到某个日期范围?如果有一些支持在 receiveDateTime 字段的开始日期和结束日期之间进行过滤的东西就好了。

Nan*_* Yu 5

您可以尝试 $filter 查询:

https://graph.microsoft.com/v1.0/me/messages?$filter=(receivedDateTime ge 2017-03-13T04:14:08Z) and (receivedDateTime le 2017-04-12T05:15:08Z)
Run Code Online (Sandbox Code Playgroud)