Dear all,
I am currently confronted with a pagination issue when getting data from a REST API.
When querying the REST API in basic manner only the first 100 items are returned.
The issue is that the table contains 197 items and I would like to get them all of course.
The Power Query created by default in the first "Source" step is:
= Json.Document(Web.Contents("https://mysite.com/api/targettable?id=X"))
It returns the following:
data List
total 197
page_size 100
skip 0
I made some tests and if I want to get the next 97 items I need to call the API again: https://mysite.com/api/targettable?parameter1=X&skip=100
As the number of items will constantly grow, I would like to implement a loop in order to get all the time all items from the table.
I'm a newbie in Power Query / DAX language so kindly ask your support & suggestions on how to implement this loop.
Thanks a lot