How to get all records in CRM using widget
I have 1000 records in CRM under Leads Module, I want to get all the 1000 records using CRM Widget but it only returns 200 records per page. how do I get the 1000 records on all pages using widget JS SDK?
this the code I'm using
ZOHO.embeddedApp.on("PageLoad",function(data)
{
ZOHO.CRM.API.getAllRecords({Entity:"Leads",sort_order:"asc"})
.then(function(data){
console.log(data)
})
})
ZOHO.embeddedApp.init();