Forum Discussion

jwagner's avatar
jwagner
Regular Visitor
2 years ago

Help iterating through paginated API in PBI

 
Objective

Bring in data from a paginated API in Power BI using the web connector/M query. This is an Azure API (Policy Definitions - List By Management Group) that is paginated using a "nextLink" at the end of the JSON output. 

 

M Query

 

 

Screenshot of the initial API call

 

 

 

Eventually I will need to expand the "value" column but will need to append all the data from the pages into one table first. How can iterate through the "nextLink"? I was close to achieving this using the List.Generate function but am not able to get it fully. 

 

Thank you in advance!