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

occurrences details in search results

Open nshowkath opened this issue 11 years ago • 1 comments

Our requirement is find all occurrences by giving recurring id(appointment id) i.e expand view of search results #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
CalendarView  calView = new CalendarView(currentappt.getRecurrence().getStartDate(),
appt.getRecurrence().getEndDate());
calView.setPropertySet(recurringMasterProperties);
FindItemsResults<Appointment> recurringMasterResults = exService.findAppointments(  WellKnownFolderName.Calendar,calView);

Issues here is it includes other appointments also in result set as I am sending given appointment start date and end to Calenderview In some cases results not showing all occurrence(it is not paging issue)
#2) I tried other workaround to achieve our requirement of showing occurrences of appointment in search results

Every appointment (single , reoccurrence ) will have unique conversation id , i.e All occurrences of given recurrence will have same conversation id

https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.exchangeservice.getconversationitems(v=exchg.80).aspx but It seems EWS JAVA API does not have API (Overloaded api like EWS Microsoft ) to get Conversations based on ID ConversationIndexedItemView conView = new ConversationIndexedItemView(10); exService.findConversation(conView,folderID)

Example : Get items in a single conversation by using the conversation identifier

Is there any way to achieve to show all occurrences details in search results . Please let us know the correct approach with some sample code.

Thanks, Showkath.

nshowkath avatar Jul 29 '15 06:07 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 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"

nshowkath avatar Aug 29 '15 07:08 nshowkath