Search code examples
microsoft-graph-apimicrosoft-graph-mail

can't find a way to list email replies


I am working on integration with Microsoft Graph and can't find a way to list all replies for specific email so the user can respond to it

we have implemented this idea on Gmail API through the thread concept but in Microsoft Graph we found that the thread word has different use

I have found something in common between the original mail and its replies which is conversationId but it's impossible to get and filter all sent messages and also received ones to just find the mails have the same conversationId


Solution

  • I'm not sure where you got the idea that you can't filter on conversationId but it absolutely can be. The following will return any messages matching the conversation:

    /v1.0/me/messages?$filter=conversationId eq '{conversationId}'
    /v1.0/users/{id|userPrincipalName}/messages?$filter=conversationId eq '{conversationId}'