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 / Move & Rename OneDrive...
Power Automate
Unanswered

Move & Rename OneDrive file - is moving all files instead of just one

(0) ShareShare
ReportReport
Posted on by 15
What change do I need to make to have the flow only move the file with the exact name?
 
Daily three xlsx files are saved in a folder. I need one file to be archived. Flow moves the file and adds the date file name.  The flow works for the file needed. However, the flow also moves the other two files.  I cannot figure out how to get it to only move the one file.  I assume it is because the file names all start with 4MEAL CSQ CSQ DAILY and 4MEAL CSQ AGENT DAILY.  The third file which needs moved and is moving right is 4MEAL CSQ ACTIVITY DAILY.  In the File parameter, I tried to use a fx expression and do file name equals 4MEAL CSQ ACTIVITY DAILY.xlsx which was based on solution posted saying to use this in fx to grab just one file.  When I try variations of this in the fx, the flow fails.
@equals(triggerOutputs()?['body/Name'], 'filename.csv')
 
Here is Move or Rename paramaters set up:
Categories:
I have the same question (0)
  • WillPage Profile Picture
    2,337 Super User 2026 Season 1 on at
    Are you using the Move or rename a file action, or Move or rename a file using path? They both look identical to the flow author but if you click the 3 dots and go peek code, you can see the first one translates the selected source file to its drive ID, whereas the one with using path in the name does not.

    If you use the first one, you can rename the file in the source and it'll still move it because the drive ID is what it's looking for, and the flow studio UI is just looking up and showing you its name. The latter, using path, will do that lookup at runtime so if you rename the file in the source the action will fail or if you replace the file with another using the same name it'll move that new file. I think that's the one you need to use in your case.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard