4.2.3 Clearing a Flag

The following example shows a Sync command request ([MS-ASCMD] section 2.2.2.20) sent from the client to the server to clear a flag on an e-mail item. The Status element (section 2.2.2.74) value of 0 (zero) indicates that the flag is cleared.

 <?xml version="1.0" encoding="utf-8"?>
 <Sync xmlns:email="Email:" xmlns:tasks="Tasks:" xmlns="AirSync:">
   <Collections>
     <Collection>
       <SyncKey>1401532757</SyncKey>
       <CollectionId>5</CollectionId>
       <DeletesAsMoves>1</DeletesAsMoves>
       <GetChanges>1</GetChanges>
       <WindowSize>512</WindowSize>
       <Commands>
         <Change>
           <ServerId>5:5</ServerId>
           <ApplicationData>
             <email:Read>1</email:Read>
             <email:Flag>
               <email:Status>0</email:Status>
               <email:FlagType>Flag for follow up</email:FlagType>
               <email:CompleteTime>2009-02-19T08:30:00.000Z</email:CompleteTime>
               <tasks:StartDate>2009-02-19T08:00:00.000Z</tasks:StartDate>
               <tasks:UtcStartDate>2009-02-19T08:00:00.000Z</tasks:UtcStartDate>
               <tasks:DueDate>2009-02-19T08:00:00.000Z</tasks:DueDate>
               <tasks:UtcDueDate>2009-02-19T08:00:00.000Z</tasks:UtcDueDate>
               <tasks:DateCompleted>2009-02-20T09:30:00.000Z</tasks:DateCompleted>
               <tasks:ReminderSet>0</tasks:ReminderSet>
               <tasks:ReminderTime>2009-02-24T20:00:00.000Z</tasks:ReminderTime>
               <tasks:Subject>Please follow up</tasks:Subject>
             </email:Flag>
           </ApplicationData>
         </Change>
       </Commands>
     </Collection>
   </Collections>
 </Sync>
Show: