Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Create folders and move files to folders based on part of file name

(0) ShareShare
ReportReport
Posted on by 2
Apologies in advance, I'm very new to power automate. 
 
Lets say I currently have a folder with many files thrown in with a name resembling "D810_Shot 1_001" and "D810_Shot 2_024" and so on. How would I build out a flow so that it would create folders based on "Shot *" and move the appropriate files to the folder?
 
Thank you.
  • Suggested answer
    CU04021832-0 Profile Picture
    CU04021832-0 2 on at
    Create folders and move files to folders based on part of file name
    I ended up figuring out the answer.
    For anyone wondering I'm attaching my flow as an image
     
  • creativeopinion Profile Picture
    creativeopinion 10,056 on at
    Create folders and move files to folders based on part of file name
    @CU04021832-0 You'll need to use an expression and the split() function. To learn more about the split() function refer to this YT Tutorial:
     
     
    In this Power Automate tutorial I’m going to cover 7 functions you need to know when getting started with expressions.

    1️⃣ empty()
    2️⃣ coalesce()
    3️⃣ equals()
    4️⃣ if()
    5️⃣ concat()
    6️⃣ length()
    7️⃣ split()
    I cover how to use these functions in expressions and I’ll also cover common mistakes when it comes to writing expressions and show you a few tips and tricks along the way.
    As a beginner or even an intermediate flow builder—expressions can seem a bit complex at first, I’m going to try to simplify it for you.
    IN THIS VIDEO:
    ✓ What is an Expression?
    ✓ What is a Function?
    ✓ What Does Wrapping a Function Mean?
    ✓ How Do I Insert an Expression?
    ✓ How to Use a Compose action
    ✓ How to Navigate the Expression Builder with Arrow Keys
    ✓ How to use the Expression Tooltip ✓ Common Mistakes When Writing Expressions
    ✓ How to differentiate a null from an empty string
    ✓ How to Get Dynamic Content When it’s Not Listed
    ✓ How to Use a Get Item Action to Verify Dynamic Content Output ✓ How to Convert Strings to Lower Case
    ✓ How to Troubleshoot the if() Function
     
    If you still run into issues while building your flow—upload a screenshot of your full flow. If you are using the new designer, toggle it off and click each action to expand it. Upload a screenshot of your flow in edit mode.
     
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard