Hi all,
Currently, I am trying to automate getting a file from the latest folder in Sharepoint Library. So far, I am able to get the Name and Path of the latest folder but it is the subsequent steps that I have trouble with.
1. Get files (properties only)
2a. Select operation --> outcome: gets latest folder in library.
Map:
Name: item()?Name
Path: item()?Path
b. initialise varArr with String values.
3. Compose outcome. inputs: first(body('Select')?['Name'])
as the first record is the latest folder
4. Filter array
From varArr
item() is equals to outputs('Compose')
5. Condition
length(body('Filter_array')) is equals to 1 // folder name should only match with one element in the arr
If anyone can spot my mistake, please do advise on what I should change. Thank you