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
Resident Rockstar
Resident Rockstar

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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,948)