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 Platform Community / Forums / Power Automate / Move File to Another F...
Power Automate
Suggested Answer

Move File to Another Folder Based on File Name

(0) ShareShare
ReportReport
Posted on by 2
Hi, I am hoping for some help in creating the following: 
 
When a file is created in a folder, if the file name contains "report" move to another folder. My set-up is below and i receive the following error. Please note, i have also tried adding a condition but it seems to always yield FALSE even if the file has "report" in the name. 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Mark Nanneman Profile Picture
    993 Moderator on at
    You need to reference an actual property of the trigger.

    Put a compose underneath the trigger and look at the names of the properties




    @contains(triggerOutputs()?['headers/x-ms-file-name-encoded'],'Report')

    If this helped you, please click "Does this answer your question" and give it a like to help others in the community (+ close the ticket)!

    Power Platform Developer | LinkedIn: Mark Nanneman | Blog: Power Stuff  | YouTube: Mark's Power Stuff  
  • KB-12112000-0 Profile Picture
    2 on at
    Hi Mark, 
     
    Thank you for this. What argument should i place in the input parameter of the compose action? Apologies, i am new to power automate. 
     
     
    Thank you! 
  • Mark Nanneman Profile Picture
    993 Moderator on at
    Sorry for the confusion!
     
    You don't need to leave the compose action there, compose is just a handy method to get a peak at the output properties of any action above it.

    You just select the property into your compose, then you can copy and paste it into the expression editor, or a notepad or text app on your compture.

    Hope that helps

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 258 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 198 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard