cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
satyakanth
Frequent Visitor

Do we have a trigger "When a folder is created" in SharePoint like "When a file is created"

Hi All,

 

I was searching for a trigger "When a Folder is created" in SharePoint. But I didn't come across in my search.

 

Here is the scenario I am working on.

When a Folder is created in SharePoint Site A, Copy the folder to Destination SharePoint Site B

Could some one give me any idea how do I proceed

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@satyakanth 

You can use a trigger condition on a When a File is created action (properties only) and the following expression:

@if(equals(triggerBody()?['{IsFolder}'],true),true,false)

 

To add the trigger condition, go to the settings for the trigger.

TriggerCondx1.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
DeepakS
Super User
Super User

Hi @satyakanth 

 

You can use when file create trigger. once you get the file properties there is a property called -isFolder. you can use this to determine if it is folder or not.

 

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

@satyakanth 

You can use a trigger condition on a When a File is created action (properties only) and the following expression:

@if(equals(triggerBody()?['{IsFolder}'],true),true,false)

 

To add the trigger condition, go to the settings for the trigger.

TriggerCondx1.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

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,827)