web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / condition does not res...
Power Automate
Unanswered

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

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard