Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am calling a web api to grab some data which is paginated and I am struggling with how to get the next page of data as it is cursor based.
When I call the api in PowerQuery (I'm connecting through a Web datasource) the Navigator returns a table with two rows, the first row that contains a table of data that I'm requesting and a second row that contains a table that contains the original url but with a cursor parameter appended to it.
so the structure looks like this:
Original api call = https://api.myapiurl.com/v1/channel/1234/webcasts
which produces:
Name | Table |
webcast | Table |
link | Table |
The link table contain the following:
href | rel |
https://api.myapiurl.com/v1/channel/1234/webcasts?cursor=6789 | next |
I can expand the webcast row which contains the data without any problems but how do I then call the next page of data and store it with the first call and then continue until I have all the available data?
Many thanks!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |