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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerAutomate will not...
Power Automate
Answered

PowerAutomate will not copy/create file based on a keyword in a newly created file

(0) ShareShare
ReportReport
Posted on by 5

I am trying to get PowerAutomate in Office365 to look into a folder and if a file gets created and somewhere in the filename it has the word _hold then it should create a copy of that file in another folder. I have tried several variations of this and can't seem to get it to work. As a test I also created an action for No and I copied a file from my computer and saved it as test_hold.pdf to the Options folder listed as the first step. It did the No Action instead of the Yes action because it saved it to the PG folder. It is as if PowerAutomate sees the word _hold and does the No action instead of the Yes action. I have attached what the flow looks like. Any ideas where I am going wrong? 

 

tenn_tazz26_0-1663770523560.png

 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,551 Super User 2026 Season 1 on at

    The comparison is case sensitive.  Use toUpper or similar to prevent that from being an issue.

  • Verified answer
    v-liwei-msft Profile Picture
    on at

    Hi @tenn_tazz26 

     

    You should replace the dynamic content of File name with an expression:

    triggerOutputs()?['headers']?['x-ms-file-name']

    vliweimsft_0-1663830631201.jpeg

    vliweimsft_1-1663830641601.png

    vliweimsft_2-1663830654888.png

     

    Best Regards,

    Levi

  • tenn_tazz26 Profile Picture
    5 on at

    Levi, that worked great. Thank you so much. 

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard