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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.