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

Rename file in FTP after flow is completed

What steps are needed to rename a file in an FTP, after the flow has moved the file to OneDrive for Business?


Step1 - When a file is created or modified in FTP

Step2 - Create file in Onedrive

Step3- rename the original file in the FTP as "completed_FILENAME"


Step4- move that file to subfolder "archive"


So far I have Step1&2 working.


Would Step3 be best done in parralell with Step2 that creates the file to OneDrive?


How do I build Step3 &4?

Community Support Team
Community Support Team

Re: Rename file in FTP after flow is completed

Hi FLowsRg8t,


If possible, instead of using step3, please try to add a Condition before step4, and configure the Condition as File Name contains “Completed”. (If all your modified files include “completed” in the file name).

Then after the condition, in the IF YES branch, add an action to remove the file to a subfolder.


Please try it on your side and let me know if it works for you.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!


Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,046)