I am using the EWS Java api 2.0 to read appointments on a Calendar mailbox. It works fine but my problem is to filter the appointments by its subject description, which I am not succeeding. At the moment I am using CalendarView to retrieve the appointments, something like this:
CalendarFolder cf = CalendarFolder.bind(service, WellKnownFolderName.Calendar);
CalendarView view = new CalendarView(startDate, endDate);
FindItemsResults<Appointment> findResults3 = cf.findAppointments(view);
I know that the Item class provides a method which I can apply a search filter, but it does return occurrences of a recurring series.
Something like that:
ItemView itemView = new ItemView(50);
SearchFilter searchFilter = new SearchFilter.ContainsSubstring(ItemSchema.Subject, "OK");
FindItemsResults<Item> findResults = service.findItems(WellKnownFolderName.Calendar, searchFilter, itemView);
Does anyone have an idea how to fix that?
Thanks and regards