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 Automate
Unanswered

File organizing Flow

(0) ShareShare
ReportReport
Posted on by

I have this flow that gets files from a folder.

It crops the file name and then creates new folders based on the cropped name somewhere else.

 

Then I want the flow to loop through all the files in the original folder and move them into the new folders if the names match.

 

Maquia_0-1700167317546.png

The folder making works fine, but the files aren't being moved. No errors in the flow, just runs and the files don't move.

I am a complete beginner, any help is appreciated.

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    I think the first and second operands that you have given in if activity are of not same 

    croppedtext is name extracted from the path and currentitem2 is the path of the file

     

    for this you need to crop the name from the currentitem2 and then use if activity.

     

    Hope this helps

    Usha

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    This is because you are using %CroppedText% outside of the first loop. It is a single text value and after the first loop finishes, it will always be equal to the last value on the last iteration of the first loop.

    You really don't need the two other loops at all. When you create the folder inside the first loop, simply use Move file(s) right away and move %CurrentItem% to the new folder you just created.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard