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

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!
    Zoho Marketing Automation

              Zoho Pagesense Resources

                Zoho SalesIQ Resources

                      Zoho TeamInbox Resources

                        Zoho DataPrep Resources

                          Zoho CRM Plus Resources

                            Zoho Books Resources

                              Zoho Subscriptions Resources

                                Zoho Desk Resources

                                  Zoho Projects Resources

                                    Zoho Sprints Resources

                                      Qntrl Resources

                                        Zoho Creator Resources

                                          Zoho WorkDrive Resources

                                              Zoho Campaigns Resources

                                                Zoho CRM Resources

                                                        Design. Discuss. Deliver.

                                                        Create visually engaging stories with Zoho Show.

                                                        Get Started Now