-
Notifications
You must be signed in to change notification settings - Fork 566
occurrences details in search results #386
Description
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.