How The ConnectWise Manage API Handles Pagination with PowerShell
If you have ever worked with the Microsoft Graph API, you may be familiar with how it handles pagination, which is returning an @odata.nextLink
property in the response containing a URL to the following results page.
I was initially confused when I started working with the ConnectWise PSA API. Although I could specify a pageSize
and page
parameter, there never seemed to be an indication of where to go for the next page of results. This write-up will show you several ways to do pagination within the API and how to form your headers and requests for each type.
The documentation for pagination from Connectwise can be found here.
Query Parameters
The first item to discuss is query parameters. Query parameters are key-value pairs that filter, sort, or paginate data an API returns. Below is a table of the query parameters we will use when paginating data and what … Continue...