cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MeThree_
Level: Power Up

How to create a condition with filepath name that contains a specific word

I'm trying to create a flow that will divert files according to words in the file name. But my flow always diverts one way, not finding the word I state in the @contains condition. What am I doing wrong?

 

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to create a condition with filepath name that contains a specific word

Hi @MeThree_,

 

Could you please share a screenshot of the configuration of your flow?

What is the trigger in your flow?Is it "When a file is created" of Onedrive for business Connector?

 

I have made a test on my side,you could refer to screenshot below to create the flow:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice 

 

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: How to create a condition with filepath name that contains a specific word

Hi @MeThree_,

 

Could you please share a screenshot of the configuration of your flow?

What is the trigger in your flow?Is it "When a file is created" of Onedrive for business Connector?

 

I have made a test on my side,you could refer to screenshot below to create the flow:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice 

 

 

View solution in original post

Community Support Team
Community Support Team

Re: How to create a condition with filepath name that contains a specific word

Hi @MeThree_,

 

Have your problem be solved according to my solution?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Alice

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 327 members 5,986 guests
Please welcome our newest community members: