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 / Why in Conditions - I ...
Power Automate
Unanswered

Why in Conditions - I always get Expression result - False

(0) ShareShare
ReportReport
Posted on by 58

Could any one help?

I start a flow with Form, and in the step of Condition, the condition is 

--> one answer to the question in Form should be equal to 15.

But I always get following message.

False.PNG

Thanks in advance.

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @YYA5154 ,

     

    Could you post more screenshots of your flow. Is this free form text or option set ?

     

    Thanks

  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi!

    I would try with the following expression on the right side of your Condition:

    string('15')

    If you are not familiar with expressions, follow these steps:

    https://flow.microsoft.com/es-es/blog/use-expressions-in-actions/

    Hope this helps

     

  • YYA5154 Profile Picture
    58 on at

    Thank you @ManishJain .

     

    The story is:

    I created a Quiz - about safety guidance.

    There is a Form, people need to fill in in they want to go to work.

    But the condition is: they have to complete the Quiz with 100% correct answer first.

    In the Form, I have added a question : what is your Quiz score.

    And here the condition is: if the answer to the question is equal to 15, then a approval request will be sent to the manager.

    If the Quiz score filled in in the form is lower than 15, then the member will be requested to re-do the quiz.

    I fill in the condition with Dynamic content, and the number 15, I just typed.

     

    Flow False.PNG

  • MJain Profile Picture
    2,450 on at

    Hi @YYA5154 ,

     

    As this is text box value it is string and as @efialttes suggested you can typecast that value using int(string value) . so you should be using int(outputs('Get_response_details')?['body/r47eb829d9e5342c388da4fc99a324a00']) equals 15 

     

    highlighted part should be changed as per your flow parameters.

     

    Thanks

  • YYA5154 Profile Picture
    58 on at

    Thanks @efialttes  for your advice.

    I used "15" on the right side, then I got Expression result "True".

    Solved.PNG

  • YYA5154 Profile Picture
    58 on at

    Thanks @ManishJain .

    However, as I do not know computer language, would it be possible for you to explain me - what exactly I should do?

     outputs('Get_response_details')outputs('Get_response_details')?['body/r47eb829d9e5342c388da4fc99a324a00']

     

    Sorry for the inconvenience 😥

     

  • Verified answer
    MJain Profile Picture
    2,450 on at

    Hi @YYA5154 ,

     

    From the screenshot that you shared lastly can you please add Compose action and in input add your question in it. Then click on the three dots at the right corner of action and select peek code. This is where you will see something like this 

     

    @{outputs('Get_response_details')outputs('Get_response_details')?['body/r47eb829d9e5342c388da4fc99a324a00']}

     

    select it and use it for condition like this : 

     

    int(outputs('Get_response_details')outputs('Get_response_details')?['body/r47eb829d9e5342c388da4fc99a324a00']) equals 15 . 

     

    There is no quotation in 15 here. 

     

    Thanks

  • YYA5154 Profile Picture
    58 on at

    Hi @ManishJain @efialttes ,

     

    As explained in the previous communication.

    The story is:

    First there is a Quiz - about safety guidance.

    Then there is a Form, a approval request to come to work in office.

     

    The idea is: once the requester filled in the Form to request approval, the system will first check, whether the requester has achieved 15 points (100% correct) in the quiz. -->If Yes, an approval request will be sent to their GM for approval. In No, an e-mail will be sent to the Requester to re-do the Quiz.

     

    Do you have a better way to combine the Quiz and the Request form?

     

    Thank you very much in advance.

     

  • MJain Profile Picture
    2,450 on at

    HI @YYA5154 ,

     

    If the answer to condition is yes then send approval mail to manager (considering you have retrieved in earlier steps as you have retrieved user) other wise send email to user with link of form. You can use Responder's email from form response in order to get user's email.

     

    Thanks

  • YYA5154 Profile Picture
    58 on at

    Hi @ManishJain ,

     

    Suppose I do not know people's Quiz result.

    My difficult is, once a approval request is filled in Forms, how could the system go to look for another Quiz result, and based on the Quiz result to take actions.

     

    As now I am asking people to indicate their Quiz score in the request form, -- and if possible I want to avoid this question.

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