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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy files from one fo...
Power Automate
Unanswered

Copy files from one folder to another

(0) ShareShare
ReportReport
Posted on by 6

Hi all, I think this task should be quite easy yet I need some help (I am a newbie to Power Automate).

 

I have Sharepoint folders which are named as unique 5-digit numbers, which contain some files.

I have at another place Sharepoint folders which contain the 5-digit numbers with an additional name (like "archive", "final"...). These folders are subfolders.

 

I simply want to copy the files from the first folders to the second ones which contain the 5-digit-number and "archive", based on the 5-digit-number.

 

Example:

Files from 12345 to 12345 Archive

Files from 98765 to 98765 Archive

etc. 

 

I assume I have to set a variable here (the 5-digit-number) and then simply work with "apply to each", yet I do not get this variable done. I am stuck at the part where I have to name the destination folder as I am missing this variable.

 

Anyone has an idea on this? Any help is really appreciated 🙂

 

(Addition: This flow only needs to be applied once. It is simply for moving a lot of files because of a structural change).

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Take your original folder name as dynamic content and then append the " Archive"  string (note the space) to it.

  • chrmzd Profile Picture
    6 on at

    Thank you! Could you please let me know how to take the original folder as a dynamic content?

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    lbendlin_0-1694520509919.png

    like so

     

  • chrmzd Profile Picture
    6 on at

    Thank you! It is still not working lol but probably because I did something wrong in the flow before. I will work on it! Thank you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard