Extended property in EWS
<p>I am interacting with exchange to extract emails having particular extended property. I am able to fetch email that I have sent with newly created extended properties, but when I reply to the emails, these properties are not preserved..Is this normal behavior? Is there anyway to work around it?</p>

<p>The code I am using to send and fetch email for now is as below</p>

<p>To send email with extended property</p>

<pre><code>`&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
      xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Header&gt;
    &lt;t:RequestServerVersion Version="Exchange2010" /&gt;
  &lt;/soap:Header&gt;
  &lt;soap:Body&gt;
    &lt;m:CreateItem MessageDisposition="SendAndSaveCopy"&gt;
      &lt;m:SavedItemFolderId&gt;
        &lt;t:DistinguishedFolderId Id="sentitems" /&gt;
      &lt;/m:SavedItemFolderId&gt;
      &lt;m:Items&gt;
        &lt;t:Message&gt;
          &lt;t:Subject&gt;Greetings&lt;/t:Subject&gt;
          &lt;t:Body BodyType="Text"&gt;Message with extended property attached&lt;/t:Body&gt;
          &lt;t:ExtendedProperty&gt;
            &lt;t:ExtendedFieldURI PropertySetId="c11ff724-aa03-4555-9952-8fa248a11c3e"
              PropertyName="extended_property_name" PropertyType="String" /&gt;
            &lt;t:Value&gt;NEWVALUE&lt;/t:Value&gt;
          &lt;/t:ExtendedProperty&gt;
          &lt;t:ToRecipients&gt;
            &lt;t:Mailbox&gt;
              &lt;t:EmailAddress&gt;test@cisco.com&lt;/t:EmailAddress&gt;
            &lt;/t:Mailbox&gt;
          &lt;/t:ToRecipients&gt;
        &lt;/t:Message&gt;
      &lt;/m:Items&gt;
    &lt;/m:CreateItem&gt;
  &lt;/soap:Body&gt;
&lt;/soap:Envelope&gt;`
</code></pre>

<p>Fetching email with extended property</p>

<pre><code>`&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types"
    xmlns:mes="http://schemas.microsoft.com/exchange/services/2006/messages"&gt;
    &lt;soapenv:Header&gt;
        &lt;typ:RequestServerVersion Version="Exchange2007_SP1"/&gt;
    &lt;/soapenv:Header&gt;
    &lt;soapenv:Body&gt;
        &lt;mes:FindItem Traversal="Shallow"&gt;
            &lt;mes:ItemShape&gt;
                &lt;typ:BaseShape&gt;Default&lt;/typ:BaseShape&gt;
                &lt;typ:IncludeMimeContent&gt;false&lt;/typ:IncludeMimeContent&gt;
                &lt;typ:BodyType&gt;Best&lt;/typ:BodyType&gt;
            &lt;/mes:ItemShape&gt;
            &lt;mes:IndexedPageItemView MaxEntriesReturned="10" Offset="0" BasePoint="Beginning"/&gt;
         &lt;mes:GroupBy Order="Ascending"&gt;
            &lt;typ:FieldURI FieldURI="item:DateTimeReceived" /&gt;         
            &lt;typ:AggregateOn Aggregate="Maximum"&gt;
               &lt;typ:FieldURI FieldURI="item:ItemId"/&gt; 
            &lt;/typ:AggregateOn&gt;
         &lt;/mes:GroupBy&gt; 
            &lt;mes:Restriction&gt;
                    &lt;typ:IsEqualTo&gt;
                        &lt;typ:ExtendedFieldURI PropertySetId="c11ff724-aa03-4555-9952-8fa248a11c3e" PropertyName="extended_property_name" PropertyType="String" /&gt;
                        &lt;typ:FieldURIOrConstant&gt;
                            &lt;typ:Constant Value="NEWVALUE" /&gt;
                        &lt;/typ:FieldURIOrConstant&gt;
                    &lt;/typ:IsEqualTo&gt;
            &lt;/mes:Restriction&gt;
            &lt;mes:ParentFolderIds&gt;
                &lt;!--You have a CHOICE of the next 2 items at this level--&gt;
                &lt;typ:FolderId Id="[Process.Variables.Completed Id]" 
            ChangeKey="[Process.Variables.Completed ChangeKey]"/&gt;
            &lt;/mes:ParentFolderIds&gt;
        &lt;/mes:FindItem&gt;
    &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;`
</code></pre>

<p>Any Help will be greatly appreciated!</p>

<p>Thanks</p>