Outlook Web Based Add-ins: Retrieve original email/item ID in reply/forward composing tab
I am developing an Outlook web-based add-in with an OnMessageCompose event which triggers the messageCompose() function when the reply/reply all/forward button is clicked. Once the compose window opens and the OnMessageCompose event is caught, I need to retrieve the item ID of the selected/original email, not the currently responding email.
I found conversationId helpful to retrieve the whole mail chain, but I want to access the specific email I am replying to, not the entire thread. I also discovered that the In-Reply-To value from MIME content can provide the internetMessageId of the original email, which I can use to view the email details using the Graph API.
However, I am unsure if using In-Reply-To from MIME content is reliable for production use. Is In-Reply-To safe to use for production purposes, or is there an alternative method to retrieve the original email/item ID? I have posted related questions on Microsoft Answers and Stack Overflow.