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 / IF function not recogn...
Power Automate
Unanswered

IF function not recognizing value

(1) ShareShare
ReportReport
Posted on by 21

I am trying to create an if function in power automate where it will send an e-mail notification if the value in a certain column is equal to or lesser than a specific value. But it is currently sending the e-mail notification even if the value is larger than the set value...how do I make it read this correctly? 

 

calter_0-1649360063170.png

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @calter 

     

    You need to change the below using the expression

    image.png

     

    See below

     

    image.png

     

     

  • calter Profile Picture
    21 on at

    yeah...did that and the flow still sends the e-mail even if the entry was a 4 or 5 (not 3 or less)....

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @calter 

     

    Since you are dealing with numeric comparison better to convert the IF condition left and right side values to int() expression instead of string(). Try and let me know.

     

    Thanks

  • calter Profile Picture
    21 on at

    changed that too...unfortunately it is still sending all e-mails, even though the answers are above the numbers in the condition... 

  • v-xiaochen-msft Profile Picture
    on at

    Hi @calter ,

     

    Please share the whole run history screenshots.

     

    Best Regards,

    Wearsky

  • calter Profile Picture
    21 on at

    Run history:

    calter_0-1649769739796.png

    The entry for crew competency in this particular spot (double checked in the list) was 4, yet the expression came back as true! 

  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    Can you show the raw input?

  • calter Profile Picture
    21 on at

    This is shown when I click on "show raw inputs" in the run history

     

    calter_0-1649771756529.png

     

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @calter 

     

    Thanks for the share. So the reason was you set the int() expression under the expression. It was set as plain text earlier hence it was not working.

     

    Thanks

  • calter Profile Picture
    21 on at

    Thank you so very much for your help! This is what we changed the IF function in the flow to look like: 

     

    calter_0-1649778392341.png

     

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