Forum Discussion

thinktoday's avatar
thinktoday
Copper Contributor
May 23, 2020
Solved

Check message whether is reply message or not using Outlook API

Is there any way to do this using Outlook Rest API (like can we make a request to group by conversationId). And on reading each messages in mailbox through rest api, how can we categorize that a particular msg is reply msg or not . If that is reply msg, then how can we find that msg's orginal msg(msg to which it was replied)  

 

On surfing through internet I found In-Reply-To, in Internet Message Header which have message Id of the msg to which it is replied. But in some cases even if it is replied msg it does not have internetMessageHeaders

 

For Eg.  

      If we request '/messages' for user A 

     InternetMessageHeaders  are available for messages received to that mailbox, but messages which are replied from that mailbox dosen't have that header...

Another case,

     Commonly, messages in sentMail will not have this header.