queryEvents( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a query to retrieve a list of events.

The queryEvents() function builds a query to retrieve a list of events and returns an EventsQueryBuilder object.

The returned object contains the query definition, which is typically used to run the query using the find() function.

You can refine the query by chaining EventsQueryBuilder functions onto the query. EventsQueryBuilder functions enable you to sort, filter, and control the results that queryEvents() returns.

queryEvents() runs with the following EventsQueryBuilder default that you can override:

  • limit is 50.
  • Sorted by event.start in ascending order.

The functions that are chained to queryEvents() are applied in the order they are called.

The following EventsQueryBuilder functions are supported for the queryEvents() function. For a full description of the events object, see the object returned for the items property in EventsQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
scheduleIdeq(),in()
externalScheduleIdeq(),in()
typeeq(),in()
recurringEventIdeq(),in()
transparencyeq()
locationexists()
location.ideq(),in()
location.typeeq(),in()
totalCapacityeq(),ne(),gt(),ge(),lt(),le(),exists()
remainingCapacityeq(),ne(),gt(),ge(),lt(),le()
participants.totaleq(),ne(),gt(),ge(),lt(),le()
conferencingDetailsexists()
appIdeq(),in()
Permissions
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Read Bookings Calendar Availability
Read bookings calendar - including participants
Read Bookings Calendar
Manage Calendars
Read Calendar - Including PI
Read Calendar
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsQueryEventsOptions
Returns
Return Type:EventsQueryBuilder
Did this help?