Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

condition does not result TRUE in any case when using "contains" on string from Compose or Message Body from Teams

(0) ShareShare
ReportReport
Posted on by

I created a simple flow that checks for new messages in a specific Teams channel. If the message contains the word "translate", then it should trigger the rest of the flow.

 

The condition always results false

msanzacclaro_1-1642182256604.png

 

 

msanzacclaro_0-1642182188553.png

 

Even though the message has been simplified as much as possible.

Using Compose as suggested in another post for better analysis

  • Community Power Platform Member Profile Picture
    on at
    Re: condition does not result TRUE in any case when using "contains" on string from Compose or Message Body from Teams

    @abmyes, I did

     

    string(outputs('Compose'))

     

    at the if value and worked like a charm
  • Verified answer
    abm abm Profile Picture
    32,472 Most Valuable Professional on at
    Re: condition does not result TRUE in any case when using "contains" on string from Compose or Message Body from Teams

    Hi @Anonymous 

     

    You could use a ParseStep to evaluate it correctly. From the given screenshot  you could try the following:

     

    Under the IF condition you are mapping the output of the compose action step.  Try converting to string() expression. Believe it is treating as JSON object now hence returning false.

     

    Thanks

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >