none
Getting the recurring pattern of an appointment RRS feed

  • Question

  • I'm trying to make a sync program that takes data from a SQL db and inserts/checks into Exchange. I've got a problem with getting the recurrence pattern: How do i retrieve the recurrence pattern of an appointment (for example when in the db the recurrence changes from monday to tuesday. I need to compare those.
    How do i proceed/get the recurrence pattern of the master id?
    So far i got this:

          ItemView view = new ItemView(1000);

          view.PropertySet = new PropertySet(BasePropertySet.IdOnly, AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.End, AppointmentSchema.AppointmentType, AppointmentSchema.Categories, AppointmentSchema.Location);

          FindItemsResults<Item> vv = kalenderzoek.FindItems(sf1, view);

          int i = 0;

         

          foreach (Item it in vv)

          {

            Appointment appt = it as Appointment;

          

            if (appt.AppointmentType == AppointmentType.RecurringMaster)

            {

              Console.WriteLine(appt.Id);

    ....

    Thursday, March 10, 2011 10:40 AM