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 / Contain Condition bein...
Power Automate
Answered

Contain Condition being ignored

(0) ShareShare
ReportReport
Posted on by 6

I am having an issue with my Flow. I have used the 'Does not contain condition' (I have also tried it the opposite way of it 'Contains' something-no joy either) for File Name dynamic content. So if it doesn't contain "draft" I want to start the approval process. 

When the flow runs it seems to ignore this instruction, and starts the approval process even when 'Draft' is contained in the file name. 

When looking at a successful flow run, I can see the File Name is returned as a string of numbers and letters and not the actual file name and assume this is what is causing the issue? (I'm a flow novice, I'm just guessing at this point)

Any ideas of how I can overcome this please?Capture1.PNG

 

 

Capture2.PNG

 

Thank you in advance to anyone who can assist me with this. I've spent the whole morning trying to get this to work with no luck!!

 

Kind regards,

Paula Flaherty

Categories:
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @paula_flaherty ,

     

    As you can see in the Flow run history provided, the File name is already encoded, so it does not match the string configured in Condition.

    Please use Get file metadata action to get the file name that is not encoded.

    Then use the Name output of Get file metadata as the parameter of Condition.

     

    Image reference:1.PNG

    Please try again.

     

    Best Regards,

  • paula_flaherty Profile Picture
    6 on at

    @v-bacao-msft thank you so much! This has completely sorted my issue 😊

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard