Forum Discussion
What is the Transform File from Query doing?
thanks MarcelBeug, that makes sense.
I was trying to do that on my other post but could not get it to work.
Any ideas on why do I get that error? and how to correct it?
I had similar issue recently, the problem is different syntax for connecting to local folder vs Sharepoint
Connecting to folder creates following syntax:
let
Source = Folder.Files(txtPath)
When you connect to Sharepoint it's a bit different:
let
Source = SharePoint.Files("https://domain.sharepoint.com/sites/yoursite/", [ApiVersion = 15])
Sharepoint gives the list of all documents in the site, so to get to proper subfolder you need this additional step
#"Filtered Rows" = Table.SelectRows(Source, each ([Folder Path] = "https://domain.sharepoint.com/sites/yoursite/" & txtSubFolderPath))