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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,065)