Forum Discussion
power query - no sharepoint folder option as data source
hi all!
i have an issue with accessing files and folders from sharepoint with power query. I have business standard licence for microsoft 365, can it be the obstacle for such actions? I can not use online services, nor can I get files from a sharepoint folder. See screenshot.
thank you for your help in advance!
From SharePoint connectors (SharePoint folders in particular) are available only for enterprise subscriptions, not for business ones.
Power Query data sources in Excel versions - Excel (microsoft.com)
You may try to M-code it directly SharePoint.Files - PowerQuery M | Microsoft Docs , not sure it works or not in such case.
13 Replies
- Gaston HuotBrass Contributor"oh, sad story for me..."
Not so sad. Please see this easy HowTo:
https://support.cloudextend.io/en/articles/5473095-get-excel-data-from-a-single-file-or-entire-folder-on-sharepoint-or-onedrive-for-business-into-power-query-or-power-bi
I believe it is the "best answer"... - SergeiBaklanDiamond Contributor
From SharePoint connectors (SharePoint folders in particular) are available only for enterprise subscriptions, not for business ones.
Power Query data sources in Excel versions - Excel (microsoft.com)
You may try to M-code it directly SharePoint.Files - PowerQuery M | Microsoft Docs , not sure it works or not in such case.
- Gaston HuotBrass ContributorUnless there is something I don't understand, this is not the "best solution" to the OP. The best solution comes from another web site: https://support.cloudextend.io/en/articles/5473095-get-excel-data-from-a-single-file-or-entire-folde...
I have business (Standard) M365 edition (not Enterprise), and it works perfectly for me. Can someone say otherwise?
Gaston- SergeiBaklanDiamond Contributor
OP question was why From SharePoint Folder connector is missed. Post you mentioned explains how to work witch such connector assuming it exists. Actually it repeats information from the post link on which gave Riny_van_Eekelen in his answer.
By the way, did you have that connector on your subscription an year ago or it appeared in recent months?
- DavedeCCopper Contributor
SergeiBaklan Thanks Sergei
- szilvia_vfBrass Contributoroh, sad story for me...
- LorenzoSilver Contributor
From SergeiBaklan on Aug 18 2021: You may try to M-code it directly https://learn.microsoft.com/en-us/powerquery-m/sharepoint-files...
It's my understanding (I can be wrong) that https://support.microsoft.com/en-us/office/power-query-data-sources-in-excel-versions-e9332067-8e49-46fc-97ff-f2e1bfa0cb16?ui=en-US&rs=en-US&ad=US actually tells you - when there's a check mark - if the option (connector) is available in the Excel menu/sub-menu and nothing else. However, it's not because i.e. SharePoint Folder doesn't appear in your menu that you can't connect to a SharePoint folder - IMHO this has to be checked
I have a 365 Home subscription and don't have SharePoint options in the Excel menus, though the SharePoint connectors are actually available in my product:
Other examples:
- JSON option not avail. in Excel 2016. After a few exchanges the OP opened a JSON file
- https://answers.microsoft.com/en-us/msoffice/forum/all/power-query-get-transform-get-data-from-pdf/1bd2afdc-2912-4b08-aae6-40250b0d589d?tm=1657958531852To check if Sharepoint connectors are available in your product:
I don't have SharePoint in my environment so can't be detailed. Also note that from an Excel version to another the options are not exactly at the same place in the Excel User Interface so I can be precise:#1 Download attached file SharePointOrNotSharepoint - it only contains a query > Refresh it. If no SharePoint function is listed, stop there. Otherwise...
#2 Go the Excel Data tab then navigate in the menus/sub-menus until you find option Blank Query
(It seems to be in sub-menu From Other Sources in all versions > 2013 but not sure)
#3 Select that option - The Power Query Editor should open (it auto. creates a query)
#4 In the formula bar enter exactly (ex. for a SharePoint folders) - Replace with your URL between double-quotes:=SharePoint.Contents("https://ToBeReplacedWithYourSharePointUrl")
then Validate
NB:
- Power Query is case-sensitive (SHARePoint.FOLdER won't work)
- You might have to enter options => check the doc. https://learn.microsoft.com/en-us/powerquery-m/sharepoint-contentsIf you want to know all Power Query functions (most connectors are PQ function) available in your Excel version you can download attached file PQ_AvailFunctionsInProduct and refresh the query, it'll list them all
- Riny_van_EekelenPlatinum Contributor
szilvia_vf Perhaps you'll find your answer here:
https://www.myonlinetraininghub.com/get-data-from-onedrive-or-sharepoint-with-power-query
- szilvia_vfBrass ContributorNo, unfortunately i can nit follow the steps because I have a menu item missing. Please see my screenshot in the original post.