4.3 Setting Attendee Status from the Server

The following example demonstrates a Sync command response ([MS-ASCMD] section 2.2.1.21) from the server that contains a new meeting, and a Sync command response from the server that shows changes to the calendar item that reflect an attendee has accepted the meeting invitation.

In the following Sync command response, the new meeting has one attendee. The organizer is not included in the attendee list; rather, the organizer's information is specified by the calendar:OrganizerEmail element (section 2.2.2.35) and the calendar:OrganizerName (section 2.2.2.36) element.

 <?xml version="1.0" encoding="utf-8"?>
 <Sync xmlns="AirSync:" xmlns:calendar="Calendar:"
 xmlns:airsyncbase="AirSyncBase:">
   <Collections>
     <Collection>
       <Class>Calendar</Class>
       <SyncKey>3</SyncKey>
       <CollectionId>1</CollectionId>
       <Status>1</Status>
       <Commands>
         <Add>
           <ServerId>1:2</ServerId>
           <ApplicationData>
             <calendar:Timezone>4AEAAFAAYQBjAGkAZgBpAGMAIAB
             TAHQAYQBuAGQAYQByAGQAIABUAGkAbQBlAAAAAAAAAAA
             AAAAAAAAAAAAAAAAAAAAAAAoAAAAFAAIAAAAAAAAAAA
             AAAFAAYQBjAGkAZgBpAGMAIABEAGEAeQBsAGkAZwBoAHQA
             IABUAGkAbQBlAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
             QAAAABAAIAAAAAAAAAxP///w==</calendar:Timezone>
             <calendar:DtStamp>20051103T010509Z</calendar:DtStamp>
             <calendar:StartTime>20051103T230000Z</calendar:StartTime>
             <calendar:Subject>test meeting</calendar:Subject>
             <calendar:UID>040000008200E00074C5B7101A82E0080000000
             0B0FD68A212E0C5010000000000000000100000008C46B9A4960AF
             340871367CEC57B4543</calendar:UID>
             <calendar:Attendees>
               <calendar:Attendee>
                 <calendar:Email>chris@fourthcoffee.com
                 </calendar:Email>
                 <calendar:Name>Chris Gray</calendar:Name>
                 <calendar:AttendeeStatus>0</calendar:AttendeeStatus>
                 <calendar:AteendeeType>1</calendar:AttendeeType>
               </calendar:Attendee>
             </calendar:Attendees>
             <calendar:OrganizerName>Anat Kerry
             </calendar:OrganizerName>
             <calendar:OrganizerEmail>anat@contoso.com</calendar:OrganizerEmail>
             <calendar:Location>34/1123</calendar:Location>
             <calendar:EndTime>20051104T000000Z</calendar:EndTime>
             <airsyncbase:Body>
               <airsyncbase:Type>1</airsyncbase:Type>
               <airsyncbase:EstimatedDataSize>28
               </airsyncbase:EstimatedDataSize>
             </airsyncbase:Body>
             <calendar:Sensitivity>0</calendar:Sensitivity>
             <calendar:BusyStatus>2</calendar:BusyStatus>
             <calendar:AllDayEvent>0</calendar:AllDayEvent>
             <calendar:Reminder>15</calendar:Reminder>
             <calendar:MeetingStatus>1</calendar:MeetingStatus>
           </ApplicationData>
         </Add>
       </Commands>
     </Collection>
   </Collections>
 </Sync>

The following Sync command response contains a change to the calendar item that reflects that an attendee has accepted the meeting invitation. In this example, the value of the calendar:AttendeeStatus element (section 2.2.2.5) is 3, indicating that the attendee has accepted the meeting invitation.

 <?xml version="1.0" encoding="utf-8"?>
 <Sync xmlns="AirSync:" xmlns:calendar="Calendar:"
 xmlns:airsyncbase="AirSyncBase:">
   <Collections>
     <Collection>
       <Class>Calendar</Class>
       <SyncKey>4</SyncKey>
       <CollectionId>1</CollectionId>
       <Status>1</Status>
       <Commands>
         <Change>
           <ServerId>1:2</ServerId>
           <ApplicationData>
             <calendar:Timezone>4AEAAFAAYQBjAGkAZgBpAGMAIABTAHQAY
             QBuAGQAYQByAGQAIABUAGkAbQBlAAAAAAAAAAAAAAAAAAAAAAAAA
             AAAAAAAAAoAAAAFAAIAAAAAAAAAAAAAFAAYQBjAGkAZgBpAGMAIA
             BEAGEAeQBsAGkAZwBoAHQAIABUAGkAbQBlAAAAAAAAAAAAAAAAAAA
             AAAAAAAAAAAAAAAQAAAABAAIAAAAAAAAAxP///w==
             </calendar:Timezone>
             <calendar:DtStamp>20051103T013759Z</calendar:DtStamp>
             <calendar:StartTime>20051103T230000Z</calendar:StartTime>
             <calendar:Subject>test meeting</calendar:Subject>
             <calendar:UID>040000008200E00074C5B7101A82E00800000000B
             0FD68A212E0C5010000000000000000100000008C46B9A4960AF
             340871367CEC57B4543</calendar:UID>
             <calendar:Attendees>
               <calendar:Attendee>
                 <calendar:Email>chris@fourthcoffee.com
                 </calendar:Email>
                 <calendar:Name>Chris Gray</calendar:Name>
                 <calendar:AttendeeStatus>3</calendar:AttendeeStatus>
                 <calendar:AttendeeType>1</calendar:AttendeeType>
               </calendar:Attendee>
             </calendar:Attendees>
             <calendar:OrganizerName>Anat Kerry
             </calendar:OrganizerName>
             <calendar:OrganizerEmail>anat@contoso.com</calendar:OrganizerEmail>
             <calendar:Location>34/1123</calendar:Location>
             <calendar:EndTime>20051104T000000Z</calendar:EndTime>
             <airsyncbase:Body>
               <airsyncbase:Type>1</airsyncbase:Type>
               <airsyncbase:EstimatedDataSize>28</airsyncbase:EstimatedDataSize>
             </airsyncbase:Body>
             <calendar:Sensitivity>0</calendar:Sensitivity>
             <calendar:BusyStatus>2</calendar:BusyStatus>
             <calendar:AllDayEvent>0</calendar:AllDayEvent>
             <calendar:Reminder>15</calendar:Reminder>
             <calendar:MeetingStatus>1</calendar:MeetingStatus>
           </ApplicationData>
         </Change>
       </Commands>
     </Collection>
   </Collections>
 </Sync>
Show: