Share via

Unable to retrieve complete list of messages from Microsoft Teams API

Kaif Master 30 Reputation points
2024-03-29T06:15:49.9333333+00:00

Hello,

I have left a group and the last message visible to me was a system event message indicating that I left the group. Now, I am attempting to retrieve the full list of messages by calling the API https://graph.microsoft.com/v1.0/me/chats/{chat-id}/messages, and its good returns all messages including that last system event message

I've tried adding a query to the API to sort messages by createdDateTime in descending order https://graph.microsoft.com/v1.0/me/chats/{chat-id}/messages?$orderby=createdDateTime desc, but to my surprise, I am unable to see the last system message indicating that I left the group. I can see other system messages but not this one.

Is this a bug or a feature of the API?, or somthing else ?

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,896 Reputation points
    2024-04-16T00:07:54.7466667+00:00

    Hello @Kaif Master ,

    Thanks for reaching Microsoft.

    I have tried to replicate this issue and I was able to see similar behavior with this Scenario.

    I would recommend you to raise a support case with Microsoft Graph, a dedicated Support Engineer will be able to look into the issue and assist you better. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.