Forum Discussion
abbas_uddin
6 years agoHelper I
Connecting to Sharepoint Specific Folder
Dear Experts, i would like your inputs on how to connect to share point specific folder. The scenario is explained below: i have connected to Get Data from Share Point Folder -> Entered the ...
- 6 years ago
Hello abbas_uddin .
had a quick check and it seems to be possible.
- Connect to sharepoint
- Select library
- Add column to check folder name and filter only true
- Expand Folder and Files
here an example how it could work
let Source = SharePoint.Tables("YourSharepoint", [ApiVersion = 15]), GotoLibrary = Source {[Id="IDofYourLibrary"]}[Items], RenamedColumns = Table.RenameColumns(GotoLibrary,{{"ID", "ID.1"}}), FilterForURL = Table.AddColumn ( RenamedColumns, "ContainsFilterCriteria", each if Text.Contains(_[Folder][ServerRelativeUrl], "YourSearchCriteriaForFolder") = true then true else false ), FilteredRows1 = Table.SelectRows ( FilterForURL, each ([ContainsFilterCriteria] = true) ), RemovedOtherColumns = Table.SelectColumns ( FilteredRows1, {"Folder"} ), ExpandedFolder = Table.ExpandRecordColumn ( RemovedOtherColumns, "Folder", {"ItemCount", "Name", "ServerRelativeUrl", "WelcomePage", "Files", "ListItemAllFields", "ParentFolder", "Properties", "Folders"}, {"ItemCount", "Name", "ServerRelativeUrl", "WelcomePage", "Files", "ListItemAllFields", "ParentFolder", "Properties", "Folders"} ), ExpandedFiles = Table.ExpandTableColumn ( ExpandedFolder, "Files", {"CheckInComment", "CheckOutType", "ContentTag", "CustomizedPageStatus", "ETag", "Exists", "Length", "Level", "MajorVersion", "MinorVersion", "Name", "ServerRelativeUrl", "TimeCreated", "TimeLastModified", "Title", "UIVersion", "UIVersionLabel", "Author", "CheckedOutByUser", "ListItemAllFields", "LockedByUser", "ModifiedBy", "Versions"}, {"CheckInComment", "CheckOutType", "ContentTag", "CustomizedPageStatus", "ETag", "Exists", "Length", "Level", "MajorVersion", "MinorVersion", "Name.1", "ServerRelativeUrl.1", "TimeCreated", "TimeLastModified", "Title", "UIVersion", "UIVersionLabel", "Author", "CheckedOutByUser", "ListItemAllFields.1", "LockedByUser", "ModifiedBy", "Versions"} ) in ExpandedFilesIf this post helps or solves your problem, please mark it as solution.
Kudos are nice to - thanks
Have fun
Jimmy
Jimmy801
6 years agoCommunity Champion
Hello
are there any news on this topic? Did solve or help any reply your problem?
If this is the case, please mark it as solution.
Jimmy