4.9.1 Request

The following example shows the GetItemEstimate command request (section 2.2.1.9) sent from the client to the server to retrieve the number of items in a folder that require synchronization. The airsync:SyncKey element (section 2.2.3.181.3) in the request is set to the value returned by the last Sync command response (section 2.2.1.21). The getitemestimate:CollectionId element (section 2.2.3.30.2) identifies the folder to query, and the airsync:Options (section 2.2.3.125.2) elements indicate any time filters or specific content class items to retrieve.

  
 <?xml version="1.0" encoding="utf-8"?>
 <GetItemEstimate xmlns="GetItemEstimate" xmlns:airsync="AirSync">
   <Collections>
     <Collection>
       <airsync:SyncKey>785971245</airsync:SyncKey>
       <CollectionId>5</CollectionId>
       <airsync:Options>
         <airsync:FilterType>0</airsync:FilterType>
         <airsync:Class>Email</airsync:Class>
       </airsync:Options>
     </Collection>
   </Collections>
 </GetItemEstimate>