Retrieve All Occurrences in a Recurring series in One Shot?

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.

April 29th, 2015 12:26pm

>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

Free Windows Admin Tool Kit Click here and download it now
April 29th, 2015 10:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics