cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

When a file is created in multiple different parent folders that have the same subfolder

Hi,

 

My company has a folder structure that goes "Project RFI's > 'Insert project name'> 1-Submitted"

SubFolder.PNG

that is duplicated for every project (from picture: 1234-Test is variable). I need a flow triggered when a file is dropped in the "1-Submitted" folder of any of the projects. I was hoping I there is a way to do this with 1 flow that encompasses all projects without having to create a flow for each projects folder path.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

You can do this. Use the "When a file is created" action by selecting your top level Project RFI's folder. Then you need to check that 1-Submitted is in the path of the newly created file using the indexOf expression. Something like this should work:

 

https://ibb.co/z7gfdGn 

1-Submitted.png

When you are happy that it does what you want. I would add a trigger condition to the "When a file is created" action so that it only executes when a file in 1-Submitted is created. Otherwise it will trigger the flow for any file created within the Project RFI's folder, even if it does not do anything. You can easily build all of the logic above into a single expression.

View solution in original post

2 REPLIES 2
Super User III
Super User III

You can do this. Use the "When a file is created" action by selecting your top level Project RFI's folder. Then you need to check that 1-Submitted is in the path of the newly created file using the indexOf expression. Something like this should work:

 

https://ibb.co/z7gfdGn 

1-Submitted.png

When you are happy that it does what you want. I would add a trigger condition to the "When a file is created" action so that it only executes when a file in 1-Submitted is created. Otherwise it will trigger the flow for any file created within the Project RFI's folder, even if it does not do anything. You can easily build all of the logic above into a single expression.

View solution in original post

That did it! Thanks

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (65,745)