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 Apps / PowerApp true/false va...
Power Apps
Unanswered

PowerApp true/false variable

(0) ShareShare
ReportReport
Posted on by 353

Hello all,

 

I am sending a variable to flow through powerapps that is either true or false. In the condition i have the variable is equal to true. But it keeps going to false, the if no block. Is the way i am entering "true" wrong  ?

 

flow.PNG

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    Hi @mmattar 

     

    You expression true

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

  • mmattar Profile Picture
    353 on at

    Would i utilize the bool(true) expression ? 

  • RezaDorrani Profile Picture
    12,143 on at

    Hi @mmattar 

     

    Capture.PNG

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    As @RezaDorrani mentions.  In my experience its always best to enter True/False values as an expression when using them in a condition.  Entering the text will sometimes work, but its spotty.

  • mmattar Profile Picture
    353 on at

    it may be how i am sending the variable from powerapps, because it doesnt seem to be working. Keeps defaulting to false in flow. 

     

    Button(for approving) OnSelect Property code: 

    UpdateContext({aprv: true});
    AprvDenLeakNotification.Run(aprv,DataCardValue19_1.Text,DataCardValue19_1.Text, orderIdApvDenValue.Text,DataCardValue10.Text,userEmail)

     

    Button(for denying) OnSelect Property code: 

    UpdateContext({aprv: false});
    AprvDenLeakNotification.Run(aprv,DataCardValue19_1.Text,DataCardValue19_1.Text, orderIdApvDenValue.Text,DataCardValue10.Text,userEmail)

     

    am i missing something ? 

  • RezaDorrani Profile Picture
    12,143 on at

    Hi @mmattar 

     

    in your flow I am assuming you are using a boolean variable to store this passed value

     

    When u run the flow, check the value in this variable and share screenshot

     

     

  • mmattar Profile Picture
    353 on at

    In my understanding the boolean variable is Condition_ObjectName, which is a boolean being passed to powerapps.flow1.PNGflow2.PNG

  • mmattar Profile Picture
    353 on at

    by the way, the screenshots is a use cases for the flow to return true

  • RezaDorrani Profile Picture
    12,143 on at

    @mmattar 

     

    yes but the variable is in the condition so cannot see its value in Flow

     

    add a compose action before the condition

    and add the boolen variable being passed from PowerApps to Flow in the compose action

     

    then run you flow and share screnshot so we can see the value inside the compose action

  • shawn_fielding Profile Picture
    on at

    @RezaDorrani That's not possible.  It can only be saved to a string variable on the power automate side.  But then it seems to act like a boolean.  It can only be tested with "equals..." operators.  "Starts with" breaks it because you can't test a boolean that way.  So in other words, I am still having trouble figuring out how to test a boolean true/false in the form brought over.  It goes only to a string variable.  But then it cannot be tested like a string.  But then it never seems to satisfy a boolean test.  So confused.

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard