Forum Discussion
Optional options as nullable record
- 6 years ago
You can get a little more info by using #shared as your source in a blank query. Convert that to a table and then filter to and click on the function of interest. In the case of Folder.Files(), the optional parameter is "PreserveLastAccessTimes" and accepts true or false.
Here is the query I used to get to this function, if you want to see for yourself.
let
Source = #shared,
#"Converted to Table" = Record.ToTable(Source),
#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "Folder.Contents" or [Name] = "Folder.Files")),
Value = #"Filtered Rows"{1}[Value]
in
ValueRegards,
Pat
Hi HennSarv
Thanks to mahoneypat's suggestion,
As for get folders and its sub folders, you could refer to the following:
https://radacad.com/get-the-list-of-folders-only-in-power-bi-using-power-query
Best regards
Maggie