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

Notifications

Announcements

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:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 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,474 Super User 2025 Season 2 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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard