Forum Discussion
bayusaurus
Feb 13, 2025Copper Contributor
How to get teams channel message from reply of a message id in ms graph?
Hi, I'm currently using the Microsoft Graph API to develop an app. I use https://graph.microsoft.com/v1.0/search/query to search for messages. I receive the results, which include both the original m...
Sayali-MSFT
Microsoft
Feb 14, 2025Hello @bayusaurus,
When using the Microsoft Graph API to retrieve messages in Microsoft Teams, you may encounter a situation where you need to differentiate between main messages and replies. If you receive a 404 error when trying to retrieve a reply message using its message ID, it indicates that the API endpoint you are using is not designed to handle reply messages directly.
Could you please check with this Graph API-
GET https://graph.microsoft.com/v1.0/teams/fbe2bf47-16c8-47cf-b4a5-4b9b187c508b/channels/19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2/messages/1612509044972/replies/1613671348387
Reference Document-
Get chatMessage in a channel or chat - Microsoft Graph v1.0 | Microsoft Learn