Listing Records
UseSearchAsync to retrieve paginated lists of records from any entity endpoint.
List the first page
Retrieve the first page with the default page size (25):Custom page size
Specify a page number and page size:Iterate all pages
Loop through every page to process all records:SearchResult properties
TheSearchResult<T> object returned by SearchAsync provides full pagination metadata:
| Property | Type | Description |
|---|---|---|
Records | List<T> | The records on the current page. |
CurrentPage | int | The current page number (1-based). |
PageSize | int | The number of records per page. |
TotalItems | int | Total number of matching records. |
TotalPages | int | Total number of pages available. |
Sorting results
PassorderBy and dir parameters to control the sort order:
| Parameter | Type | Description |
|---|---|---|
orderBy | string | The property name to sort by (e.g., "FromTime"). |
dir | int | Sort direction: 0 = ascending, 1 = descending. |
FromTime ascending, Coworkers default to FullName ascending).
Sorting with filters
Sorting can be combined with filters and pagination:Sorting with typed search filters
Typed search filter classes also exposeOrderBy and Dir properties: