cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RameshMukka
Post Prodigy
Post Prodigy

Email should not trigger when a subfolder is created inside SharePoint folder

I would like to send an email when a new folder A created inside a SharePoint document library folder. At the same time no email should be triggered when creating a folder inside A folder. How can I achieve this. I have created below flow but it triggers email every time a new subfolder is created at any levels.

Subfolder FLow.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @RameshMukka 

 

In your trigger settings (Click the 3 dots on the trigger, click settings)

 

Add this trigger condition:

** My document Library Name is NewFiles so Replace NewFiles with your Document library name **

@equals(triggerOutputs()?['body/{Path}'],'NewFiles/')

 

Trigger Condtions1.png


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

8 REPLIES 8
Jcook
MVP

Hello @RameshMukka 

 

In SharePoint are you referring to a SharePoint List? Or a SharePoint Document Library.

Your Trigger is for SharePoint Lists.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





I have used custom input option to enter my document library name. I used this trigger as we dont have the trigger "When a new folder is created".

Hi @RameshMukka 

 

In your trigger settings (Click the 3 dots on the trigger, click settings)

 

Add this trigger condition:

** My document Library Name is NewFiles so Replace NewFiles with your Document library name **

@equals(triggerOutputs()?['body/{Path}'],'NewFiles/')

 

Trigger Condtions1.png


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@RameshMukka 

 

You can even use a trigger condition to check if Item is a folder. So your Flow will only run if it is a Folder AND not a subfolder

 

Jcook_0-1601671801952.png

 

@equals(triggerOutputs()?['body/{IsFolder}'],true)

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@JcookWoww. It worked like a charm. Thank you so much for the additional tip. You are awesome!

Hi. I know this is late but this doesn't work for me, I have run into the same issue. 

@darknight123 

What is your library name and can you show your trigger conditions? The solution should still work.

Thanks for the fast response. I found that even though its documents> file name, I have to use shared documents > file name. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,886)