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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
rsderby68
Resolver I
Resolver I

List.Generate Pagination Help?

Hello All, 

 

I have this Query below that does a POST REST API call for results.  Note the "Page=" where I can specify a page of results.  I'm trying to figure out how to paginate this to get all results.  I think it would somehow use List.Generate to check against a null value?  Would someone help out?  Note that with this API the total record count value is in a return header which I gather from reading we can't actually see in Power Query/Power BI?  Normally I would use that record count to create a table of that number.  Help?  

 

let

url = "https://tessy.com/tessituraservice/Reporting/Lists/182243/Results",

body = "OutputSetId = 1137"&"Page=1",

Source = Json.Document(Web.Contents(url,[Headers = [#"Authorization"="Basic <<encoded>>", #"Content-Type"="application/x-www-form-urlencoded"], Content = Text.ToBinary(body)]))

in

    Source

 

 

 

1 ACCEPTED SOLUTION
rsderby68
Resolver I
Resolver I

I got this working using a different method found on youtube.  thanks!

View solution in original post

3 REPLIES 3
rsderby68
Resolver I
Resolver I

I got this working using a different method found on youtube.  thanks!

ppm1
Solution Sage
Solution Sage

Please see Method 3 in this article to see how to do this. The example is pretty close to your scenario.

Handling Paginated REST API Results with Power Query | John Dalesandro

 

Pat

 

Microsoft Employee
Anonymous
Not applicable

Hi @rsderby68 ,

 

You can try to remove "&"Page=1" and run again to get all pages.

Or you need to get the maximum number of pages according to your API.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors