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 Automate - Building Flows
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).

I have the same question (0)
  • lbendlin Profile Picture
    8,361 Super User 2025 Season 2 on at
    Re: Copy files from one folder to another

    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
    Re: Copy files from one folder to another

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

  • lbendlin Profile Picture
    8,361 Super User 2025 Season 2 on at
    Re: Copy files from one folder to another

    lbendlin_0-1694520509919.png

    like so

     

  • chrmzd Profile Picture
    6 on at
    Re: Copy files from one folder to another

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard