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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
sriram_in
Regular Visitor

Dynamically connect to SharePoint Online List sources based on a list of urls

I have a requirement where we have the same list exists across many sharepoint sites and I have the list of those URLs, this list will change whenever a new site is created. Can we take this URL list as input and connect to each of the sharepoint site and get the required data?

 

 So whenever a report refresh happens, it has to fetch the list of URLs and connect to all the sites listed and get data from list specified and append it together to one table.

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Thanks much for your reply, I can see this will combine the files, I want to be able to do it for Custom lists in SharePoint. 

 

Let us say I have 3 sites and I have the URLs in a separate list, the function below will be able to get the URLs but after that how do I navigate to the specific list in all the sites by list name and combine them.

 

Regards,

Sriram S

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @sriram_in,

 

You can use below function.(it used to connect to each url and merge them to one table)

 

let
    LoadSharepointList=(source as table, columnName as text) as table =>
let
    CombineTable= Table.Combine(Table.AddColumn(source, "Custom", each SharePoint.Files([columnName]))[Custom])
in
    CombineTable
in
    LoadSharepointList

 

 

Regards,

Xiaoxin Sheng

Hi @Anonymous,

 

Thanks much for your reply, I can see this will combine the files, I want to be able to do it for Custom lists in SharePoint. 

 

Let us say I have 3 sites and I have the URLs in a separate list, the function below will be able to get the URLs but after that how do I navigate to the specific list in all the sites by list name and combine them.

 

Regards,

Sriram S

HI 

You can expand your custom column.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors