Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

4.1 Synchronizing Conversation Data

The following example demonstrates a Sync command response ([MS-ASCMD] section 2.2.2.20) from the server that contains data representing an e-mail message that is part of a conversation. The conversation ID (email2:ConversationId element ([MS-ASEMAIL] section 2.2.2.20)) and conversation index (email2:ConversationIndex element ([MS-ASEMAIL] section 2.2.2.21)) are included as child elements of the airsync:ApplicationData element ([MS-ASCMD] section 2.2.3.11). A server can choose any name for a namespace and then map its chosen name to the actual namespace name. This example shows alternate namespace names being used by the server.

Response:

<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns:email="Email:" xmlns:airsyncbase="AirSyncBase:" 
xmlns:email2="Email2:" xmlns="AirSync:">
  <Collections>
    <Collection>
      <SyncKey>1601897837</SyncKey>
      <CollectionId>7</CollectionId>
      <Status>1</Status>
      <Commands>
        <Add>
          <ServerId>7:1</ServerId>
          <ApplicationData>
            <email:To>"deviceuser" &lt;someone@example.com&gt;</email:To>
            <email:From>"deviceuser2" &lt;someone2@example.com&gt;</email:From>
            <email:Subject>Test report</email:Subject>
            <email:DateReceived>2009-03-21T07:04:26.948Z</email:DateReceived>
            <email:DisplayTo>deviceuser</email:DisplayTo>
            <email:ThreadTopic>Test report</email:ThreadTopic>
            <email:Importance>1</email:Importance>
            <email:Read>1</email:Read>
            <airsyncbase:Body>
              <airsyncbase:Type>1</airsyncbase:Type>
              <airsyncbase:EstimatedDataSize>100</airsyncbase:EstimatedDataSize>
              <airsyncbase:Truncated>1</airsyncbase:Truncated>
              <airsyncbase:Data>Test data</airsyncbase:Data>
            </airsyncbase:Body>
            <email:MessageClass>IPM.Note</email:MessageClass>
            <email:InternetCPID>20127</email:InternetCPID>
            <email:Flag/>
            <email:ContentClass>urn:content-classes:message</email:ContentClass>
            <airsyncbase:NativeBodyType>2</airsyncbase:NativeBodyType>
            <email2:ConversationId>BBA4726D4399D44C83297D4BD904ED2D</email2:ConversationId>
            <email2:ConversationIndex>01C9A9F345</email2:ConversationIndex>
            <email:Categories/>
          </ApplicationData>
        </Add>
      </Commands>
    </Collection>
  </Collections>
</Sync>
Show:
© 2015 Microsoft