Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • paula_flaherty Profile Picture
    6 on at
    Re: Contain Condition being ignored

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

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Contain Condition being ignored

    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,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow