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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors