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
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
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.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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