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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
krixtsup3r
Helper V
Helper V

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

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.

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors