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:
response = zoho.books.getRecords("Contacts","xxxxxxxx","&status=active&contact_type=customer","zohobooks");
itemList = response.get("contacts").toJSONList();
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!
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.