/* CODE SNIP BEGIN */
//Get exsisting Exchange appointment
Appointment exchangeAppointment = Appointment.Bind(service, new ItemId(xalAppointment.EXCHANGEITEMID));
//Here comes the puzzel - if I run the code without the sleep - the update does not take place. If however I keep the sleep the update does take place - why ???
Thread.Sleep(1000);
//Update the content of the appointment
mapper.FillAppointment(xalAppointment, exchangeAppointment, email);
//Update Exchange
exchangeAppointment.Update(ConflictResolutionMode.AlwaysOverwrite);
/* CODE SNIP END */
|