Forum Discussion
Anonymous
6 years agoNot applicable
Cursor Paginated data from Web API
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 connect...
Anonymous
6 years agoNot applicable
Hi ImkeF,
No luck I'm afraid. This is the code now but I still get an Invalid Identifier error for the Attribute part.
let
myList = List.Generate( ()=>
[Result = try Query4("https://api.brighttalk.com/v1/channel/10737/webcasts") otherwise null, Counter = 0],
each [Result] <> null and [Counter] < 5,
each [Result = try Query4(Table.LastN([Result], 1)[Attribute:href]) otherwise null, Counter = [Counter]+1],
each [Result])
in
myList
ImkeF
6 years agoCommunity Champion
Hi Anonymous ,
for debugging purposes, please use this query:
let
myList = List.Generate( ()=>
[Result = Query4("https://api.brighttalk.com/v1/channel/10737/webcasts"), Counter = 0],
each [Counter] < 5,
each [Result = Query4(Table.LastN([Result], 1)[#"Attribute:href"]), Counter = [Counter]+1],
each [Result])
in
myList
It should create a list and there you have to navigate to the errors and paste screenshots of them please.