Hi everybody!
There is the possibility to subscribe for notifactions, when a user is mentioned in a new message in a team channel (https://learn.microsoft.com/en-us/graph/teams-changenotifications-chatMessage#example-3-subscribe-to-messages-and-replies-in-a-channel-without-resource-data)
I have the requirement to make a subscription for several users and want to expand the filter statement with a or operator:
/teams/team-id/channels/channel-id/messages?$filter=mentions/any(u:u/mentioned/user/id eq 'userid1') or mentions/any(u:u/mentioned/user/id eq 'userid2')
Unfortunately I get following error:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: Unable to parse filter parameter. Only supporting EQ and IN for filter statement.]",
"innerError": {
"date": "2021-07-06T09:07:20",
"request-id": "xxxxx",
"client-request-id": "xxxxx"
}
}
}
How can I declare a filter statement with more then one user?
Thanks in advance!
Regards
Alex