Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Pagination of data not being provided #11

Open
Brannos1970 opened this issue Jun 21, 2018 · 1 comment
Open

Pagination of data not being provided #11

Brannos1970 opened this issue Jun 21, 2018 · 1 comment

Comments

@Brannos1970
Copy link

Zoho CRM provides its data by a certain number of records per page or pull. So when I try to pull all records it only gives me the first 20 records. How can I tell the code to pull the max 200 records and check to see if more pages exist? Could you possibly add a GetAllRecords that would pull everything of the module type where the code checks if more pages exist itself and retrieve the additional records?

@ghost
Copy link

ghost commented Mar 5, 2019

I notice the following section when using online JSON parser:

"page_context": { "page": 1, "per_page": 200, "has_more_page": true, "report_name": "Items", "applied_filter": "Status.All", "custom_fields": [], "sort_column": "name", "sort_order": "A" }

So when I append "&page=2" to the URL it would return another set of 200 records.
To evaluate has_more_page Boolean status and query the next page if it was true.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant