Not receiving <InReplyTo> tag in EWS GetItem response if mail subject changed in reply

Raghunandan Kumbhar 20 Reputation points
2025-07-22T11:46:21.5066667+00:00

I have an add-in that I run in Exchange Server 2019. When replying to an email, my add-in requires some information related to the parent email. For this, I use the EWS GetItem API. In the response, I get an <InReplyTo> tag, where I find information about the parent email.

See below example for more info:

User's image

The issue is that if I change the subject in the reply, I do not get that <InReplyTo> tag in the response, and hence cannot access parent email information.

This issue is only observed in Outlook on Mac (classic UI).

Any information, workaround, or timelines on a potential fix for this issue will be greatly appreciated.

Do let me know if any further information is required from my end.

Exchange | Exchange Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hin-V 2,075 Reputation points Microsoft External Staff Moderator
    2025-07-22T14:41:57.45+00:00

    Hi @Raghunandan Kumbhar

    Thank you for posting your question in Microsoft Q&A. 

    Based on your description, I understand you have considered to receiving <InReplyTo> tag 

    in EWS GetItem response in Outlook on Mac. We are glad to assist you this part. 

    From my perspective, this might be a platform-specific behavior (or potential bug) in Outlook on Mac. When the subject is changed during a reply, Outlook might intentionally or inadvertently omit the In-Reply-To header from the draft item to signal the start of a new conversation thread. This header is what populates the <InReplyTo> element in the EWS GetItem response. Standard email protocols don't require removing it, but client implementations like Outlook can vary. 

    The <InReplyTo> element corresponds to the first-class property with FieldURI item:InReplyTo, which is typically populated with the original message's ID for replies.learn.microsoft.com.

    To confirm you're requesting it correctly in your GetItem call, ensure your XML includes it in the <AdditionalProperties> section include (it's not returned by default in the base shape): 

    <GetItem xmlns="
      <ItemShape> 
        <BaseShape>IdOnly</BaseShape> 
        <AdditionalProperties> 
          <FieldURI FieldURI="item:InReplyTo" /> 
          <!-- Add other properties as needed, e.g., item:ConversationId --> 
        </AdditionalProperties> 
      </ItemShape> 
      <ItemIds> 
        <ItemId Id="your-reply-item-id" /> 
      </ItemIds> 
    </GetItem> 
    
    

    If <InReplyTo> is still missing despite this, it's likely due to the client not setting the header. 

    I have found relevant article that might help: 

    Properties and extended properties in EWS in Exchange | Microsoft Learn 

    Work with Exchange mailbox items by using EWS in Exchange | Microsoft Learn  

    InReplyTo | Microsoft Learn 

    Please let us know if you need further assistance.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.