You retrieve a collection of items by using the methods:
The above methods accept an expression parameter that is automatically converted to a REST call. These expressions are the following:
You can combine all of the above expressions in any binary operator form (&& ||).
For more complex filters, an alternative method is provided on the IRestClient interface:
IRestClient
The GetAllArgs argument allows you to provide additional parameters for projection, filtering, sorting, pagination, and total count in the following way:
GetAllArgs
Use it in the following way:
This filter expression is a hierarchical object structure of the types FilterClause and CombinedFilter.
FilterClause
CombinedFilter
The operators available for the basic filter (FilterClause) are the following:
"eq"
"ne"
"gt"
"lt"
"ge"
"le"
"any+or"
"any+and"
"not+(any+or)"
"startswith"
"endswith"
"contains"
In this example:
FieldName
Operator
FieldValue
The combined filter is recursive and can contain child combined filters. The combined filter has an additional property called Operator which can have the value of And or Or which correspond to Logical AND and logical OR between the child filters.
And
Or
The two filtering strategies can be mixed using the following method. It simplifies the usage of the filters and provides a parameter to control the pagination, ordering, total count and projection:
Filter by translated tags
Filter by parent items with SDK object
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important