Skip to main content
Community site session details
Power Automate - General Discussion
Answered

unable to copy files from folder to another library dynamically

Like (0) ShareShare
ReportReport
Posted on 12 May 2020 13:46:36 by

Hello Everyone,

I am trying to copy folder and also all file inside the folder when the folder associated column called "Factory" is to a specific name. 

Based up on this name it will get the site URL dynamically and then it will create folder. Until this it is working fine. But I am not able to copy files at all. I don't see right action for this to do dynamically using https request.  Please let me know the best way to achieve this. 

 

Steps so far achieved: 

1. when a new item is created or modified (Library A)

2. condition: is folder = Yes

3. Get items (list B) - filter= Title eq 'FactoryNameColumnValue'

4. Compose  -- FolderName (this is from library)

5. send http request to create folder

 

flow-1.PNGFlow-2.PNGFlow-3.PNG

 

 

 

 

  • Verified answer
    abm abm Profile Picture
    32,506 Most Valuable Professional on 12 May 2020 at 16:48:43
    Re: unable to copy files from folder to another library dynamically

    Hi @Anonymous 

     

    Thanks for the discussion.

     

    You don't need the HTTP request to create folder. There is already a create new folder action step available. 

     

    Once the folder is created then use the Get Files properties. Then iterate each files and copy file from destination to target.

     

    image.png

     

    You can't reply on that trigger mainly if user takes long time to upload  a file you will miss that file to upload. I would add a column called 'Ready to copy' Yes/No type then use the trigger to item modified 'Ready to copy' Yes.

     

     

     

     

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2