In short, what I'm trying to do:
List files in a sharepoint folder and then perform an action for each PDF file.
I use the List folder action for my sharepoint folder, which should list all files in the folder. However the subfolders also come along.
I'm trying to catch that by using the IsFolder condition setting it to: IsFolder equals false of IsFolder equals 0
However, the condition is never evaluated as being true.
This is weird since when I request meta data from the files, it litteraly says IsFolder false
ANy help would be appreciated.
Have you tried with the "SharePoint - List root folder" action which will only list the files in the root folder?
Also I'm not sure about how your condition works with IsFolder. A screenshot of your detailed information of your flow would help to understand.
Using the List root folder action is not the right choice since I only need files from a specific subfolder.
My condition is as follows:
I tried replacing false also with 0 and No, but none of those work.
BTW, the action fot get folder has the same statement that it gets the files from the folder, but that isn't correct since it also gives the subfolders.
Is anyone able to get this IsFolder thing working?
I'd like to see this bug confirmed or get some help in the difference in setup so I might get through this 🙂
@stevenpauwels I have a 'trick' with any conditional branch looking for a true/false - I enter the function equals(1,1) to represent 'true' and equals(1,0) to represent 'false'. It works every time.
You need to convert the 'false' value to bool.
Use this in your condiction(advancedMode):
Hope this helps.
@stevenpauwels have you tried entering entering true or false directly into the function editor? The resulting function would look like 'fx true'. I understand this might also work.
Yippeee! I found a solution!! Read on! I was having the same problem as Steve.
...nor entering true into the function editor made the outcome any different. Both resulted in:
ActionFailed. An action failed. No dependent actions succeeded.
HOWEVER... when I tried this in the function editor, it worked:
So the condition goes:
IsFolder is equal to bool(0)
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.