Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have one API which give a paginated response as
{
value: [object]
nextapi: api
}
Now for example if the total number of records are 100. Then in first run it will return 10 records and api to get the next 10 records will be in the nextapi variable. So, I need to call it in loop and till there is nextapi available in response loop should continue and append the data. Below is my code,
But I am getting below error when fired the function
If your API has skiptoken or offset capability, you could consider this alternate approach.
Power BI - Tales From The Front - REST APIs - YouTube
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 5 | |
| 5 |