ews-java-api icon indicating copy to clipboard operation
ews-java-api copied to clipboard

How to get occurrences details of given recurrence

Open nshowkath opened this issue 11 years ago • 1 comments

Hi

How to get occurrences details of given recurrence using EWS JAVA API , could you provide any example. Similar question i posted , but i did not get any response https://github.com/OfficeDev/ews-java-api/issues/386

Thanks, Showkath

nshowkath avatar Aug 18 '15 14:08 nshowkath

Hi,

The code which i tried was working , did not test properly in the past because "In some cases results not showing all occurrence(it is not paging issue) , I could have tested more calendar events If any one facing similar issue , you can try below approach which works Answer) 1 ) "To implement this I tried to use ExchangeService.FindAppointments , One way to find recurring series including occurance https://msdn.microsoft.com/en-us/library/office/dn727655(v=exchg.150).aspx#sectionSection2" Note : When you use calendar view in the code - you need to pass recurrence startdate and enddate "FindItemsResults recurringMasterResults = exService .findAppointments( WellKnownFolderName.Calendar, calView);" Then compare recurring event Conversation id with all occurrence conversation id's in search results and add only those occurance to result list.

I hope this helps for others , if anyone need more information you can your questions here.

Regards, Showkath.

nshowkath avatar Aug 29 '15 07:08 nshowkath