Reply
junkpwan
New Member
Partially syndicated - Outbound

Can it be done?! Querying files stored in SharePoint from a table of SharePoint site URLs.

Hey all, this one is truly baking my noodle.

 

We have annual reports (.xlsx) for customers shared on different SharePoint sites.

 

We want to combine some tables stored in those files. The files all have an identifier in them, to help pick them out from the site contents.

 

We also have a directory stored in an excel table of all those sites' urls (https://company.sharepoint.com/sites/companyA, B, C...  etc).

 

Can we build something dynamic that queries all those sites from the directory, therefore meaning that when we win / lose customers, we can amend the directory rather than the queries?

 

1 ACCEPTED SOLUTION

Syndicated - Outbound

Use separate queries per site.

View solution in original post

4 REPLIES 4
junkpwan
New Member

Syndicated - Outbound

This sounds ideal.  We've given it a whirl and are coming across this hurdle:

To be able to search through those folders, we need access to the parent folder https://company.sharepoint.com/sites/

 

Issue is, that we don't have access to that it seems.

 

Here's the error we get:

Details: "Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed:
OData Version: 3 and 4, Error: The remote server returned an error: (404) Not Found. (404 FILE NOT FOUND)
OData Version: 4, Error: The remote server returned an error: (404) Not Found. (404 FILE NOT FOUND)
OData Version: 3, Error: The remote server returned an error: (404) Not Found. (404 FILE NOT FOUND)"

Syndicated - Outbound

Use separate queries per site.

Syndicated - Outbound

Thanks Ibendlin, that was our plan B, then amend the queries and appended table with customer losses and wins.

lbendlin
Super User
Super User

Syndicated - Outbound

Yes, that is a standard pattern. Use the "SharePoint Folders"  connector, filter for the files you want to ingest, and then write your ingestors and use them in Table.AddColumn  before combining the results.

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)