0
votes

I try to make a request on Microsoft Graph but I can't find the answer. (https://developer.microsoft.com/fr-fr/graph/graph-explorer)

I would like to get all the messages that they are NOT in a category :

This request, give all the messages with the category 'oa' : https://graph.microsoft.com/v1.0/me/messages?$filter=categories/any(c:c eq 'oa')

I would like to have the opposite : https://graph.microsoft.com/v1.0/me/messages?$filter=not categories/any(c:c eq 'oa') but this request failed...

Thanks for your help

1

1 Answers

0
votes

You should be able to use 'ne' for "not equal" instead of 'eq':

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