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 / Moving a file to anoth...
Power Automate
Unanswered

Moving a file to another folder based on folder name

(0) ShareShare
ReportReport
Posted on by 2

Hi, 

 

I'm trying to come up with a way to move a file to another folder in a document library when signoff is approved. How I hope to do this is to read the subfolder name the file is in, and when approved, it moves it to another subfolder of the same name. I think getting the trigger to work is no problem, but I can't seem to figure out how to dynamically set copy to the right folder. Example below:

 

WIP (Top level folder)

Subfolders:

1

2

3

 

Approved (Top level folder)

Subfolders

1

2

3

 

When the files in subfolder of WIP 1 2 or 3 are approved, move that file to the same folder name under Approved. 

 

I have 22 subfolders I need to do this for, so adding a flow for each of them doesn't seem like a good option, so you think one flow can dynamically find what subfolder to put the file in based on where it is located?

 

Thank you for support. 

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,081 on at

    Create an array 22X2 where each row will contain the source folder id and the destination folder id.

  • Kacki Profile Picture
    2 on at

    I'm the equivalent of a 3 year old on this... sorry about that. Can you help me to better understand? Should there be another flow to add metadata to the files created in this folder get the folder info from? 

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard