How to Fetch > 200 Contacts form Zoho Books

How to Fetch > 200 Contacts form Zoho Books

Hi everyone,

I'm running into an issue getting more than 200 records from the Zoho Books API. We are using this to populate a dropdown with a list of all active customers in a Creator dropdown field. Here is the code below:

  1. response = zoho.books.getRecords("Contacts","xxxxxxxx","&status=active&contact_type=customer","zohobooks");

  2. itemList = response.get("contacts").toJSONList();

  3. for each  item in itemList
    {
        input.Customer_Name_Books:ui.add(item.getJSON("contact_name"));
    }

This works fine to fetch records as expected, but unfortunately we are only getting the first 200 contacts. I need to be able to fetch all the contacts in order to populate the dropdown.

Any ideas? Thanks!