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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JOAOLBMARTINS
Helper II
Helper II

Sharepoint connection with Web Contents

Dear all, how are you?

 

I'm working with a project which I need to access a few Sharepoint Lists that are hosted in different Sharepoint SubSites (despite being different subsites, all of them has the same root).

Once that the Sharepoint connector doesnt allow us to pass a "RelativePath" as parameter, and trying to create a custom function and invoking it from a table containing all the URL's cannot be refreshed on the service (following some topics here I think this is some issue regarding the fact that Power BI Service cannot authenticate the sources once they are variable), my ideia is to work with Web Contents and try to follow Chris Webb's blog post (https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...)

 

Does anyone know or have any guide on how we can access Sharepoint Lists using Web Contents? I've already tried "converting" the content to XML Table and HTML Table but without success.

 

Thanks a lot in advance

Cheers,

 

J. M.

2 REPLIES 2
jennratten
Super User
Super User

Hello - I have done a lot of work with PowerBI and Sharepoint sources that bypass the dynamic data source issue.  Note, I do not use the Web.Contents function so if you are specifically looking for that then this post won't help.  If you are open to other ideas, here is a link that describes the process.  Note, the linked post is for combining files from various Sharepoint paths but the basic process would be the same to get the data from the lists. 

 

https://community.powerbi.com/t5/Power-Query/DataFlow-does-not-save-due-to-dynamic-data-source/m-p/2... 

Hello @jennratten 

 

Thanks in advance for the reply.

 

Unfortunetely I think that your solution won't work in my case.

You're using the Sharepoint.Files() connector, whereas I need to use the Sharepoint.Tables() connector to get the list content.

However, when using the Sharepoint.Tables() I can't find the path to the Subsites from my Sharepoint Root.

 

I've created a table containing all the subsites's paths and a Function based on a query to one of those subsites.

However, when I "Invoke" the function, I've got the issue with the datasources.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors