Showing results for 
Search instead for 
Did you mean: 
Not applicable

Move a file with an unknown destination folder

Good morning all;


Well, in fact we know the destination folder. The question is that we can't write the path explicitly like:




We want to move to a folder with a structure like:




The names: 'Projects', '06.Production' are common in all the cases. However, "XXXXX", "YYYYY" and "ZZZZZ" are different names according to the original path file.


For example:



should go to:




should go to:



Any idea? Any tip or idea will be welcome. Thx.

Resident Rockstar
Resident Rockstar

Hi @Anonymous ,


To move the file, you need to tell Flow where the file should go, you have two options
1) add the Logic in the Flow based on the requirement. You may need to update Flow whenever you have a new folder mapping
2) Manage the source/ destination mapping in SharePoint or Microsoft List and Let flow query this list based on source path and get the destination path




Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,345)