Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EWS: BindToRecurringMaster is slow, just need the recurring master Id

We are trying to list appointments for a given period for a given calendar.

For each of those appointments, if the appointment is recurring, we want to know the Id of the master appointment.

The issue is that the following code:

ItemId masterId = Appointment.BindToRecurringMaster(
    Service, appointment.Id, new PropertySet(BasePropertySet.IdOnly));

Is extremely slow, because it makes an EWS call for every recurring appointment.

Is there a faster way to get JUST the Id of the recurring master appointment?

like image 784
synic Avatar asked May 09 '18 21:05

synic


1 Answers

I was able to do a bit more research and according to Microsoft Documentation: "Note that recurring master calendar items aren't returned in a call to FindAppointments. If you want to retrieve recurring masters, or you want a more general approach to retrieving calendar items, you need to use ExchangeService.FindItems.

https://msdn.microsoft.com/en-us/library/office/dn643672(v=exchg.150).aspx

like image 74
Matt Avatar answered Sep 18 '22 01:09

Matt