Microsoft Graph Email

Digvijaysinh Zala 21 Reputation points
2021-09-15T07:26:22.253+00:00

Hi Team,

As per my analysis I am facing some issue to achieve below scenario for email outlook implementation :-

Ex :- We have Web Application and it has Sales Order Webform, I have one Sales Order, We are sending auto mail for that particular Sales Order, if User reply on same mail then we want to get whole history of particulate that Sales Oder Email Conversation.

So we required that History Email API name and how to pass data in that.

Request you to please provide sample code for the same.

Waiting for your favorable reply.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
{count} votes

Accepted answer
  1. Diana Wanjuhi 1,376 Reputation points
    2021-09-16T11:30:26.96+00:00

    Hello @Digvijaysinh Zala to retrieve a list of replies, you can use the conversationId property of the message resource. You can do this by filtering by the conversationId on the initial message, this will respond with a set of replies:

    GET

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

    Graph will respond with all the messages in the thread, I've selected just the id and conversationId in the sample below:

    132755-listmessagerepliesbyconversationid.png

    Let me know whether this helps and if you have further questions,

    Diana.

    0 comments No comments

0 additional answers

Sort by: Most helpful