How to get all messages of a conversation using Microsoft Graph Mail API?

Chong Liu 40 Reputation points
2023-12-13T08:15:38.0066667+00:00

I want to find all messages in a conversation, but the API returns only two messages with the filter condition($filter=conversation eq 'xxxx'), and how to get all messages of a conversation?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akash Jadav 85 Reputation points Microsoft External Staff
    2023-12-14T09:05:09.3566667+00:00

    Hi Chong Liu,

    Please refer following reference: https://stackoverflow.com/questions/58938402/how-to-get-the-list-of-message-using-conversation-id-from-microsoft-graph-api

    GET v1.0 https://graph.microsoft.com/v1.0/me/messages?$filter=conversationId eq '{conversationId}'

    The response contains all the messages for that conversation.

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

    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.