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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jaryszek
Memorable Member
Memorable Member

GitHub connector to get all csvs in folder and subfolder

Hi Guys,

i am using this connector to get data from github folder: 

shared GitHub.Contents = (relativePath as text, optional folderPath as text) =>
    let
        baseUrl = "https://api.github.com/repos/Vnomic/",
        url = baseUrl & relativePath & "/contents/" & folderPath,
        source = Json.Document(Web.Contents(url, [
            Headers = [
                #"Authorization" = "Bearer " & Extension.CurrentCredential()[access_token],
                #"User-Agent" = "PowerQuery"
            ]
        ]))
    in
        source;

It is possible to get 1 parent folder and all csvs tables inside subfolders while connecting to github ?

Best,
Jacek

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jaryszek ,
Thank you for reaching out to us on Microsoft Fabric Community Forum!

It is not directly possible to pull all CSVs from a parent folder and all its subfolders in one go using the GitHub.Contents connector. If your folder structure is simple, you could work around this by calling each subfolder separately. 

Hope this helps.If so,consider accepting it as solution.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jaryszek ,
Thank you for reaching out to us on Microsoft Fabric Community Forum!

It is not directly possible to pull all CSVs from a parent folder and all its subfolders in one go using the GitHub.Contents connector. If your folder structure is simple, you could work around this by calling each subfolder separately. 

Hope this helps.If so,consider accepting it as solution.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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