I have a flow that uses the SharePoint When a file is created (properties only) trigger. Although the action allows specifying a folder after the Library is selected, the flow triggers when any subfolder beneath the specified folder has a file added. Is there any way to prevent this? I tried out the deprecated action (when a file is created in a folder), and this appears to work, but not sure why I would need to go back to an older action.
Thanks, this worked. I did have to make some minor adjustments in the syntax:
In the trigger, the single quotes needed to be on the outside of the curly brackets and I needed to remove the first forward slash at the beginning of the trigger.
@equals(triggerBody()?['{Path}'],'Documents/AP Accounting Inbox/Amazon/')
Then in the folder path itself, I needed a forward slash before the path, but NO slash at the end of the path.
I tested this by adding a file directly to the specified path, then added a file in the folder above and the folder below. The flow triggered properly only when I added a file to the specified path.
Hi there,
Try adding a Trigger Condition.
So for you, you'd use @equals(triggerBody()?[{'Path'}],'/Documents/AP Accounting Inbox/')
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2