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

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

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