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 / condition does not res...
Power Automate
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 Microsoft Employee

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

Categories:
  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @abmyes, I did

     

    string(outputs('Compose'))

     

    at the if value and worked like a charm

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 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard