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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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 Kudoed Authors