web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    203 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard