cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mmattar
Level: Powered On

PowerApp true/false variable

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

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Level 10

Re: PowerApp true/false variable

Hi @mmattar 

 

Ok now in the if condition, try wrapping your variable with a boolean expression

 

example

boolean(dynamiccontentvariablepassed)

12 REPLIES 12
RezaDorrani
Level 10

Re: PowerApp true/false variable

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
Level: Powered On

Re: PowerApp true/false variable

Would i utilize the bool(true) expression ? 

Highlighted
RezaDorrani
Level 10

Re: PowerApp true/false variable

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

Super User
Super User

Re: PowerApp true/false variable

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
mmattar
Level: Powered On

Re: PowerApp true/false variable

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
Level 10

Re: PowerApp true/false variable

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
Level: Powered On

Re: PowerApp true/false variable

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

mmattar
Level: Powered On

Re: PowerApp true/false variable

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

RezaDorrani
Level 10

Re: PowerApp true/false variable

@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

mmattar
Level: Powered On

Re: PowerApp true/false variable

 

suprisngly the compose comes back true, so that confirms i am sending the variable correctly from powerapps. note: i am using the compose_input for the condition as well

flow3.PNGflow4.PNG

RezaDorrani
Level 10

Re: PowerApp true/false variable

Hi @mmattar 

 

Ok now in the if condition, try wrapping your variable with a boolean expression

 

example

boolean(dynamiccontentvariablepassed)

mmattar
Level: Powered On

Re: PowerApp true/false variable

bingo, thanks

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 115 members 4,640 guests
Please welcome our newest community members: