Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Copying file name but not content

(1) ShareShare
ReportReport
Posted on by 65

I am trying to set up a flow where when I add a new folder into a document library it will automatically copy that folders name and make a copy into a different sharepoint document library. The folder in the first document library has an automation on it where it auto fills in a large number of forms and folders. I don’t want those forms or folders in the other location and don’t want the folders linked at all. 

  • Nicktrom55 Profile Picture
    65 on at
    Re: Copying file name but not content

    The solution worked properly. One issue I’m having is that the folder when I create a new folder in the first library it is at the same time creating subfolders automatically. For some reason these subfolders are also being populated in the copy location.

     

    example: 

    library A 

      Folder 

         Subfolder

         Subfolder

         Subfolder 

     

    what’s coming over to library B is

     

    folder

    subfolder

    subfolder

    subfolder 

     

     

  • Nicktrom55 Profile Picture
    65 on at
    Re: Copying file name but not content

    thank you so much for the help! i was off in one part when i tried myself. 

  • Verified answer
    trice602 Profile Picture
    13,807 Super User 2025 Season 1 on at
    Re: Copying file name but not content

    Hi @Nicktrom55 ,

     

    Here's a solution to implement.  In this example, when a new folder is created in a main library named /Documents I will create the same folder in a completely different library (could also be completely different site) names /Names.  Here's the flow:

     

    trice602_0-1696606948503.png

     

    The trigger is the folder I am monitoring for new folders named Documents

     

    trice602_1-1696607021690.png

     

    Next I check if the modification is an actual folder because we only want to monitor new folder creations so I check if the condition is true.

     

    trice602_2-1696607076769.png

     

    If true, I want to create this folder in my other library (again, could be a completely different SP site too).  Please mark as a solution.

     

    trice602_3-1696607135081.png

     

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1