cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
varun4936
Level: Powered On

Do not trigger a flow when a folder is created in a document library

Hello,

 

I am trying to create an approval flow for a document library. The lib will basically have folders inside them all the files that get uploaded will be inside those folders.

 

The issue I am having is when I now create a folder that also triggers the flow and sets the status as pending. I am finding it difficult to make the flow not trigger when a folder is created and make it trigger ONLY when a file is uploaded inside that folder. 

Folders will be created by the end user as when required and are not pre-created.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Do not trigger a flow when a folder is created in a document library

@varun4936 

You can't stop the Flow from running when a folder is created, but you can check to see if the item created is a folder and exit the Flow (with success).

 

Folder.jpg

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Do not trigger a flow when a folder is created in a document library

@varun4936 

You can't stop the Flow from running when a folder is created, but you can check to see if the item created is a folder and exit the Flow (with success).

 

Folder.jpg

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

varun4936
Level: Powered On

Re: Do not trigger a flow when a folder is created in a document library

@ScottShearer  thanks for that suggestion. I will try that approach and see if it solves my issue.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (8,563)