4.1.8. Native requests for OData connections
You can configure the source node with a native request instead of having to retrieve an entire table.
Instead of clicking Select to select an OData collection, click Request OData .
To create a request:
Enter a list of columns, separated by commas . Click to add columns selected from the list on the left. Leave the text zone empty if you want to select all the columns.
Enter an OData filter to select a sub-set of rows. Leave the text zone empty if you want to select all the rows.
The request will be executed by the OData server itself to ensure best performance.
OData v4: Filter syntax
OData lets you use filters to extract a subset of items from a collection, e.g. Nom eq 'John'
.
1 - Input attribute values
This table shows how to enter values for different types of attribute:
Type |
Entry method |
---|---|
Character string and enumeration |
Between ordinary quotation marks (e.g. ‘John’) |
Date and time |
OData 4: raw value (e.g. 2022-03-18T23:59:59Z or 2022-03-18T23:59:59.999Z) |
Other |
Raw value (e.g. 15) |
2 - Comparison operators
OData v4 uses the following comparison operators:
Operators |
Meaning |
Example |
---|---|---|
|
equals |
|
|
does not equal |
|
|
greater than |
|
|
less than |
|
|
equal to or above |
|
|
equal to or below |
|
3 - Arithmetic operators
Operator |
Meaning |
Example |
Result |
---|---|---|---|
|
add |
|
All products at price of 8 |
|
subtract |
|
All products at price of 12 |
|
multiply |
|
All products at price of 5 |
|
divide |
|
All products at price of 20 |
|
module |
|
All products at price dividable by 5 |
4 - Functions
Function |
Example |
Result |
---|---|---|
|
|
All persons with a surname containing ‘f’ |
|
|
All persons with a surname starting with an ‘f’ |
|
|
All persons with a surname ending with an ‘f’ |
|
|
All persons with a surname 5 characters long |
|
|
All persons born in 1990 |
|
|
All persons born in May |
|
|
All persons born on the 31st of the month |
|
|
All persons registered between 13:00 and 13:59 |
|
|
All persons registered in the 55th minute of any hour |
|
|
All persons registered in the 55th second of any minute in any hour |
5 - Combining filters
Filters can be combined with: and
, or
, not
, (). For example, Name eq 'John' and (Age gt 65 or Age lt 11)
.
Combination |
Example |
---|---|
|
|
|
|
|
|
|
|