FindAppointments method

Future<FindItemsResults<Appointment>> FindAppointments(
  1. FolderId parentFolderId,
  2. CalendarView calendarView
)
Obtains a list of appointments by searching the contents of a specific folder. Calling this method results in a call to EWS. The id of the calendar folder in which to search for items. The calendar view controlling the number of appointments returned.

Implementation

Future<FindItemsResults<Appointment>> FindAppointments(
  FolderId parentFolderId,
  CalendarView calendarView,
) async {
  ServiceResponseCollection<FindItemResponse<Appointment>> response =
      await FindItemsGeneric<Appointment>(
        [parentFolderId],
        null,
        /* searchFilter */
        null,
        /* queryString */
        calendarView,
        null,
        /* groupBy */
        ServiceErrorHandling.ThrowOnError,
      );

  return response[0].Results!;
}