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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Copy (or Move) OneDrive Business file to another OneDrive Business folder **based on filename**

(0) ShareShare
ReportReport
Posted on by 2

Need help with this.

 

On a weekly basis, files will be saved to /ICE-Attachments (see image). Their are multiple filename formats in folder

Filename format will be "CreditLevels_YYYYMMDD.csv"

 

Attached is what I've assembled (and is failing on me)

 

I simply want the "CreditLevels" file that gets added to be copied/moved to /Levels

 

When i don't use the condition with filename, every file added gets moved (not what i want)

FlowImage.png

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Copy (or Move) OneDrive Business file to another OneDrive Business folder **based on filename**

    Hi @84_E ,

     

    I noticed that the trigger you used was 'When a file is created'.

     

    The output of this trigger is encrypted, here is my test:

     

    Select Use this trigger.

    vxiaochenmsft_0-1671592538198.png

     

    vxiaochenmsft_1-1671592538200.png

     

     

    Run the flow, the 'file name' in the trigger output is different from the file name, which makes the condition unable to return the expected result.

    vxiaochenmsft_2-1671592538211.png

     

     

    I suggest you use trigger 'When file is created(properties only)'.

    vxiaochenmsft_3-1671592538212.png

     

     

    I made a sample for you:

    vxiaochenmsft_4-1671592538214.png

     

     

    Create the file in the first folder.

    vxiaochenmsft_5-1671592538215.png

     

     

    In the trigger output, the file name is displayed normally.

    vxiaochenmsft_6-1671592538217.png

     

     

    The file is also moved to the second folder.

    vxiaochenmsft_7-1671592538218.png

     

    Best Regards,

    Wearsky

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard