none
Retrieve All Occurrences in a Recurring series in One Shot? RRS feed

  • Question

  • Hi, folks,

    Maybe I'm missing something: but in EWS managed API, are there any method that can retrieve all occurrences in a recurring series, providing that you have the recurring master id?

    My current implementation is to go through the occurrence one by one by calling Appointment.BindToOccurrence. This approach works though is very expensive and causes a lot of latency since we move to Office 365.

    Wednesday, April 29, 2015 4:24 PM

All replies

  • >Maybe I'm missing something: but in EWS managed API, are there any method that can retrieve all occurrences in a recurring series, providing that you have the recurring master id?

    No if you want to expand recurring appointment you need to use a CalendarView and start and endtime but you won't be able to limit this expansion to just one appointment it will be all appointment in the time frame.

    Another approach is recurrence is a just a pattern so if you have a recurring appointment that occurs 8 AM every Monday then you know that the appointment is going to occur at that same time every Monday (based on its pattern) with the same information unless there is a Modified or Deleted exception (which you can check using those collections on the appointment). So checking every instance of a recurring appointment should never be needed. Also because recurring appointments can have no end doing so would put you in an infinite loop anyway.

    Cheers
    Glen

    Thursday, April 30, 2015 2:09 AM
  • Hi,

    have a look to Microsoft.Exchange.WebServices.Data.AppointmentOccurrenceId.

    You can use this object with method ExchangeService.BindToItems() to retreive a batch of occurrences.

    Regards,


    Désiré GOVIN Refresh IT Solutions

    Thursday, April 30, 2015 7:51 AM