web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy folders from anot...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at
    Re: Copy folders from another library when a folder is created at the root of anther library.

    Hi @Anonymous ,

     

    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 Power Platform Member Profile Picture
    on at
    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 @Anonymous ,

     

    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

     


     

     

  • v-yamao-msft Profile Picture
    on at
    Re: Copy folders from another library when a folder is created at the root of anther library.

    Hi @Anonymous ,

     

    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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard