Forum Discussion

maheshkumaryu's avatar
maheshkumaryu
Copper Contributor
Mar 15, 2023

Graph API to get list of chats with $filter=id eq 'chat-id' is not working

I have recently observed a strange behavior in the Graph API to get chat by id.
The following graph call works fine and gives the response.

https://graph.microsoft.com/v1.0/chats/19:b8577894a63548969c5c92bb9c80c5e1@thread.v2
However, if I call the graph API with the filter expression like below it doesn't return any response for the same chat id
https://graph.microsoft.com/v1.0/chats?$filter=id eq '19:b8577894a63548969c5c92bb9c80c5e1@thread.v2'

 

This again doesn't return empty for all chat-id's, the chats that were not been active for few months are returned empty. However, if we post some message or add/remove member or basically modify something in the chat, the graph call with $filter=id eq 'chat-id' returns the response properly.

The graph call with https://graph.microsoft.com/v1.0/chats/19:b8577894a63548969c5c92bb9c80c5e1@thread.v2
returns response even for the inactive chats

No RepliesBe the first to reply

Resources