Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bajesh007
Frequent Visitor

Power query looping - Rest Api recursive call

Hello, I am trying to make recursive call to REST API using scrollId as the parameter in the url. The loop has to run until there is no more data is returned from the rest endpoint. 

Below link/screenshot shows the manual steps and the data returned while connecting to the rest api inside power query window.

https://photos.app.goo.gl/sX4WjAqJfKdjBEux9 

Below link/screenshot shows the recurisive rest api call made and the data returned. There are 3 records in total. First api calls returns 2 records, Second api calls returns 1 record. Third api calls returns no records ( Exceptions bucket is empty) 

Rest api output in web browser 

 

Request your help in making a recursive call using a loop. Thanks in advance.

NB: Function is used to get the endpoint url & parameters (shown in first screenshot)

1 REPLY 1
lbendlin
Super User
Super User

Screenshots are often insufficient to understand where you are stuck. Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. If you can, provide a sample conncetion crendentials to the API. Please show the expected outcome.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors