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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

See and connect to all available Sharepoint sites

Background: In our company we use an an App for Teams which constantly creates new Sharepoint sites with unpredictable site names. On all of these Sharepoint sites will be Excel files with data that we want to append/combine. The problem is that, as far as I know, I can only ever connect to a single Sharepoint site (assuming that I know its name): 



= SharePoint.Contents("https://[companyname][sitename]", [ApiVersion = 15])



I was hoping, though, that I would be able to see all existing sites using the following command:



= SharePoint.Contents("https://[companyname]", [ApiVersion = 15])



This however produces the following error:



I have a little more success with this command:


= SharePoint.Contents("https://[companyname]", [ApiVersion = 15])



It generates this list, which sadly contains no information about sites:



Maybe I need to have some Admin rights (which I currently don't possess) to see the sites?

Or is my code simply not adequate for the task? Or can it simply not be done?


Help would be greatly appreciated! Best regards!





Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors