Using filters
The AnywhereNow Insights API provides the ability to use the $filter
query parameter to easily retrieve a subset of a collection. This expression, when specified with the $filter
parameter, is evaluated for each resource in the collection, and only those items where the expression evaluates to true
are included in the response. Any resources for which the expression evaluates to false
or to null
are omitted from the response, ensuring that only the data that you are looking for is returned.
Operators and functions supported in filter expressions
The following table outlines the operators and functions supported by the AnywhereNow Insights API:
Operator type |
Operator |
---|---|
Equality operators |
|
Relational operators |
|
Conditional operators |
|
Functions |
|
Using the $filter
query parameter is a powerful way to retrieve a subset of data from the AnywhereNow Insights API. It allows users to create complex expressions that can be used to filter out unwanted data. This makes it easier to find the data that is needed, without having to manually search through large datasets.
Useful filter query operator to get started
This table provides examples of how to use the $filter
query parameter:
Description |
Example |
---|---|
Get all Agents |
GET |
Get all Endpoints that contains the name Learn |
GET |
Get all Dialogues before 1/1/2024. |
GET |
Get all Dialogues after 1/1/2023. |
GET |
Get all Dialogues in May 2023. |
GET |
Count all Dialogues that are Accepted and within SLA. |
GET |
Get all Agent with a name that start with an A |
GET |
How to Utilize the OData Filter Query Parameter
This article provides examples of how to use the $filter
OData query parameter and its associated operators. These examples are intended to serve as a guide and do not constitute a comprehensive list of all possible uses of $filter
.
Operator |
Syntax |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|