Resources: Filtering and Sorting

This article covers field support for filtering in Query Resources (SDK | REST), Search Resources (SDK | REST), and Count Resources (SDK | REST).

Filtering

Specify the filter object in the following format:

Copy

The following table shows field support for filters and sorting for the resource object:

FieldSupported FiltersSortable
id$eq, $ne, $exists, $in, $nin, $startsWithSortable
name$eq, $ne, $exists, $in, $nin, $isEmpty
typeId$eq, $ne, $exists, $in, $nin, $startsWith, $isEmptySortable
locationOptions.availableInAllLocations$eq, $ne, $exists, $in, $ninSortable
locationOptions.specificLocationOptions.availableInBusinessLocations$eq, $ne, $exists, $in, $ninSortable
locationOptions.specificLocationOptions.businessLocations.locationId$eq, $ne, $isEmpty, $hasAll, $hasSomeSortable
eventsSchedule.scheduleId$eq, $ne, $exists, $in, $nin, $startsWithSortable

Sorting

Results in Query Resources (SDK | REST) and Search Resources (SDK | REST) are sorted by the id field in ascending order by default.

To sort by a different field, use the sort object in the following format:

Copy

See also

Did this help?