Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This article explains how to handle pagination using Call URL block
Here we are mainly discussing two different types of pagination
Basically, the call URL block will only execute once or do one API call. It does not support pagination by itself, but you can construct the next page manually by checking if there is a Next Link attribute (cursor-based pagination) or if there are any other attributes indicating the presence of more records (page-based pagination)
For page-based pagination, let's take an example of Zoho CRM rest API. Say for eg, We are using call URL block to get all contacts from Zoho crm
The first call always lists out x number of items. We have to construct a loop in order to perform pagination.Please follow the below steps
Please find the attached JSON file containing an example automation workspace demonstrating page-based pagination using call URL block
For cursor-based pagination, let's go over an example of HubSpot rest API. Say for eg, We are using call URL block to get the list of companies from Hubspot
Steps to follow
Please find the attached JSON file containing an example automation workspace demonstrating cursor-based pagination using call URL block
Follow the steps provided in this article Upload Automation Workspace to import the automation from shared JSON file