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

Copy folders from another library when a folder is created at the root of anther library.

I need to trigger a flow when a folder is created at the root of the library. The flow will then copy a set of folders form another library. My issue is that the flow goes into an infinite loop as the trigger is constantly fired. I created my  folder at the root of the library but when the folders that are copied into the new folder the flow is triggered again and again.

 

How can have flow only at the root of the document library?

80E9E29B-6DAB-4109-AF16-72FB5C633C0A.jpeg

3 REPLIES 3
Community Support Team
Community Support Team

Re: Copy folders from another library when a folder is created at the root of anther library.

Hi @McBlair ,

 

Do you want to copy folders from Library2 to a folder you’ve created on Library1?

 

Do you want the flow to be triggered when a file/folder is created on the root of the library?

 

However, the trigger When a file is created (properties only) will be triggered for the whole library if you leave the Folder field blank.

 

In your scenario, the flow will be triggered whenever a file/folder created in the library, including the files created in the subfolders.

1.PNG

 

Hope this makes sense.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
McBlair
Level: Powered On

Re: Copy folders from another library when a folder is created at the root of anther library.

I want to copy a set of folders (a template) when a new folder is created at the root of the library. 

 

It looks like it can not be triggered at the root of library? Is it possible to put the folder path into the folder name as a unique identifier for the copy?

 


@v-yamao-msft wrote:

Hi @McBlair ,

 

Do you want to copy folders from Library2 to a folder you’ve created on Library1?

 

Do you want the flow to be triggered when a file/folder is created on the root of the library?

 

However, the trigger When a file is created (properties only) will be triggered for the whole library if you leave the Folder field blank.

 

In your scenario, the flow will be triggered whenever a file/folder created in the library, including the files created in the subfolders.

1.PNG

 

Hope this makes sense.

 

Best regards,

Mabel

 


 

 

Highlighted
Community Support Team
Community Support Team

Re: Copy folders from another library when a folder is created at the root of anther library.

Hi @McBlair ,

 

I have made more tests on my side and the issue could be reproduced.

 

I will help confirm this issue and back to you later.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 168 members 5,518 guests
Please welcome our newest community members: