Forum Discussion
brunofranc
6 years agoFrequent Visitor
API Get Data JSON with Pagination
Hello, I'm trying to build a rotine to get all pages of JSON Data Souce API. The limit is 1000 results per page, if in the Page´s bottom is write " "hasMore": false " i means "there is no more...
mahoneypat
Microsoft Employee
6 years agoIt might be easier to approach this differently. Do the below in a single query.
1. Make a web call to get the total # of records with $count (or whatever the syntax is for your API)
2. Divide that by 1000 and round down
3. Make a list from 1 to the number in step 2 and convert list to table, change to text type and name it Page
4. Pass the Page value into the url string (either hard code it into an Add Custom column, or make a function)
5. Append all the tables
If this solution works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
- brunofranc6 years agoFrequent Visitor
When did you say:
"Make a web call to get the total # of records with $count (or whatever the syntax is for your API)"
I didn't find this ...