Search code examples
javaexchangewebservices

how do i get master recurrence appointment EWS?


My appointment is on recurring for a week. By using below line of code:

FindItemsResults<Appointment> results = folder.findAppointments(cView);

Results are returning all the occurrences of same appointment where I just want only one entry in it for each appointment. How can I do that?


Solution

  • If you use the FindItems Method https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.folder.finditems(v=exchg.80).aspx instead of the FindAppointments method that will just return all the appointment objects un-expanded (eg meaning for recurring appointments you will just get the Master Instance).