如何通过Graph API获取高重要性邮件的详细信息



我正在尝试获取具有的邮件列表

为此,我使用下面的查询:

https://graph.microsoft.com/v1.0/me/messages?$select=importance,subject

但这是行不通的,因为它给了所有:(

我发现我必须在查询中添加过滤器,并尝试如下:

https://graph.microsoft.com/v1.0/me/messages?$select=importance,subject &
$filter=importance eq high

但是我得到如下错误:

{
"error": {
"code": "RequestBroker--ParseUri",
"message": "Could not find a property named 'high' on type 'Microsoft.OutlookServices.Message'.",
"innerError": {
"date": "2022-06-10T04:29:52",
"request-id": "",
"client-request-id": ""
}
}
}

我想我在一个错误的方式使用查询。谁能告诉我怎么了?

使用单引号''作为重要性的具体名称

https://graph.microsoft.com/v1.0/me/messages?$select=importance,subject&$filter=importance eq 'high'

相关内容

最新更新