Skip to main content

Notifications

Power Automate - General Discussion
Answered

Condition won't trigger correctly.

(1) ShareShare
ReportReport
Posted on by 13
Hello, Apologies if this is a way simple question.  I am at my wit's end.   
 
I built a very simple flow:  I created a MS Form with 20 questions.  ONE of those questions is a number (restricted entry).  I am using Power Automate to route an email based on the amount provided in the form:  Everything over 250 gets one email message. Everything 250 and under gets a different email.   But when I run the flow... the result defaults to "True" branch every time.   The condition does not seem to recognize the number from compose.  Any advice is appreciated.  
 
Categories:
  • trice602 Profile Picture
    trice602 11,772 on at
    Condition won't trigger correctly.
    Nice!  Please mark as a verified answer to help others find this common question too!  Respectfully, Tom
  • Verified answer
    Hannah123456 Profile Picture
    Hannah123456 13 on at
    Condition won't trigger correctly.
    IT WORKED PERFECTLY!   THANK YOU SO MUCH!!!! 
     
  • Suggested answer
    trice602 Profile Picture
    trice602 11,772 on at
    Condition won't trigger correctly.
    Hi,
     
    The root cause here is you need to wrap your question in an int() expression.  Even though the form question is restricted to numbers, the results still come into Power Automate as a string.
     
    Works in testing.  I tried 250 and 251, condition works!
     
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard