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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Pagination & Dynamic Sources Inquiry

Hi Guys, I took a solution on this link regarding pagination:

https://community.powerbi.com/t5/Power-Query/Handling-a-Paginated-API-with-Prebuilt-Next-Page-URI-in...

 

I was able to load it successfully and got the data that I needed but upon publishing it in Service I am now getting an error about not being able to refresh it due dynamic sources. Is there any way to iterate this and work make it work? 

krixtsup3r_0-1637905811010.png

 

I am using Asana API as source and they are using 'next_page' for pagination. 

 

 

4 REPLIES 4
lbendlin
Super User
Super User
Anonymous
Not applicable

Hi @lbendlin , thanks for this I tried to use this but cant make it work out. My api link is like this:
"https://app.asana.com/api/1.0/projects?limit=100&workspace=*************&opt_fields=team,name,owner,...", [Headers=[Accept="application/json", Authorization="Bearer *************"]]

 

I have tried removing the part Headers=[Accept="application/json" but I get a credential error. Credentials on this one should be just anonymous but it's not working. Thank you.

Consider using relativepath and options to keep the base URL static.

Anonymous
Not applicable

I tried that but getting confused on which to put it exactly I have tried different ways in adding it but is not successful. Here is my code:

 

 

let
	    Source = Json.Document(Web.Contents("https://app.asana.com/api/1.0/projects?limit=100&workspace=***************&opt_fields=team,name,owner,current_status,due_on,start_on,created_at,modified_at,public,members,custom_fields,custom_field_settings,color,notes,html_notes,workspace,archived", [Headers=[Accept="application/json", Authorization="Bearer ***************"]])),
    #"Converted to Table" = Record.ToTable(Source),
    Value = #"Converted to Table"{0}[Value],
    #"Converted to Table1" = Table.FromList(Value, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table1", "Column1", {"gid", "color", "created_at", "current_status", "custom_fields", "custom_field_settings", "due_on", "html_notes", "members", "modified_at", "name", "notes", "owner", "public", "start_on", "team", "workspace", "archived"}, {"gid", "color", "created_at", "current_status", "custom_fields", "custom_field_settings", "due_on", "html_notes", "members", "modified_at", "name", "notes", "owner", "public", "start_on", "team", "workspace", "archived"}),
    #"Expanded team" = Table.ExpandRecordColumn(#"Expanded Column1", "team", {"gid", "resource_type"}, {"gid.1", "resource_type"})
in
    #"Expanded team"

 

 

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.