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 / My condition will no r...
Power Automate
Answered

My condition will no register my Microsoft forms answer as a number. Help please?

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I have tried to add a condition into my flow basically if the number of hours entered (this is is number format in the form) is between 8 and 32 I want it to trigger an approval. I have tried converting it with string as seen in the image below but this does not work.

powernewbie221_0-1670379015461.png

 

I have entered 9, 11, 20 into the form and the condition reads as false.

 

Any help would be much appreciated.

 

I am also very new to Power Automate so very basic level explanation would be much appreciated.

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @powernewbie221 ,

     


     Please try convert them both to integer with int().

    vdezhilimsft_0-1670383798406.png

     

    vdezhilimsft_1-1670383798407.png

     

    vdezhilimsft_2-1670383798408.png

     

     

    Best Regards,

    Dezhi

  • powernewbie221 Profile Picture
    8 on at

    Hi Dezhi, how do I do that?

     

    I changed it to this and this is the error message I received.

     

    powernewbie221_0-1670383724266.png

     

    InvalidTemplate. Unable to process template language expressions for action 'Condition_3' at line '0' and column '0': 'The template language function 'greater' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @powernewbie221 ,

     

    Sorry for not being clear.
    What you need to do is convert the output of the trigger to an integer.

     

    Best Regards,

    Dezhi

  • powernewbie221 Profile Picture
    8 on at

    Hi Dehzi,

     

    The form is not a drop down it is a free type but number only, does that make a difference?

     

    powernewbie221_0-1670384289908.png

    I have changed both to integer

     

    powernewbie221_1-1670384322345.png

     

    The flow failed, it says no outputs

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @powernewbie221 ,

     

    This doesn't matter, as long as your output is in a numeric format.

    vdezhilimsft_0-1670384716972.png

     

    vdezhilimsft_1-1670384716973.png

     

    Best Regards,

    Dezhi

  • powernewbie221 Profile Picture
    8 on at

    OMG it worked!! Thank you so much for your help I was stuck on that yesterday for hours!

    Thank you Dezhi 😁

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard