Microsoft Graph:过滤器请求

时间:2020-08-21 10:41:00

标签: microsoft-graph-api

我尝试在Microsoft Graph上进行请求,但找不到答案。 (https://developer.microsoft.com/fr-fr/graph/graph-explorer

我想获取所有不在类别中的消息:

此请求,给出所有类别为'oa'的消息: https://graph.microsoft.com/v1.0/me/messages?$filter=categories/any(c:c eq'oa')

我想相反: https://graph.microsoft.com/v1.0/me/messages?$filter=not个类别/任何(c:c eq'oa') 但是此请求失败了...

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

您应该可以将“ ne”用于“不等于”,而不是“ eq”:

https://graph.microsoft.com/v1.0/me/messages?$filter=categories/any(c:c ne 'oa')