Hello,
I am trying to get a folder ID to use List Folder, but to do that I need the ID. When I use Get File Metadata Using Path I get an error that the folder doesn't exist. I am guessing because that REST call expects a file not a folder. Is there a way to get a Folder ID with the path name?
Solved! Go to Solution.
Hi,
I've been strugling with the same problem for some hours and found a solution to make dynamic url folder string that I can use as a parameter to the "List Folder" block.
This was my solution:
replace(replace(body('Get_item')?['{Path}'],'/','%252f'),' ','%2b')
The "body('Get_item')?['{Path}']" part of the line is the variable.
This worked for me 😉
Hi @stvcdms,
If you know the actual folder name, then we may use the following way to get the corresponding Folder ID:
Regards,
Michael
Thanks, this is party helpful. Though after playing with this more, it turns out List Folder isn't useful... I mean it's getting pretty frustrating now, but List Folder doesn't appear to work properly with subsites.
You can't provide List Folder with dynamic site address parameters or build the URL from the folder parameter...
Hi,
I've been strugling with the same problem for some hours and found a solution to make dynamic url folder string that I can use as a parameter to the "List Folder" block.
This was my solution:
replace(replace(body('Get_item')?['{Path}'],'/','%252f'),' ','%2b')
The "body('Get_item')?['{Path}']" part of the line is the variable.
This worked for me 😉
Thanks for this. I ended up doing something similiar, but with hard coding, your formula is most useful!
Hi I know this is an old thread, but could you please provide guidance as to how you used the provided variable within the flow? (Screenshots like the original reply would be great!
User | Count |
---|---|
39 | |
39 | |
23 | |
15 | |
12 |
User | Count |
---|---|
27 | |
20 | |
19 | |
14 | |
13 |