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

Selecting Yes / no value from form always showing as false

I have a flow that is looking at a form for a value of yes or no.

I looked for other articles that all point to using the edit in advanced mode

Now that the edit in advanced mode is gone how do I get it to look at yes or no?

 

If Yes then I want to post a card in Teams

If No then do nothing.

Thanks

12 REPLIES 12
Super User
Super User

Re: Selecting Yes / no value from form always showing as false

Hi @Crawfie13 ,

 

Could you post a screenshot of your flow please?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Crawfie13
Level: Powered On

Re: Selecting Yes / no value from form always showing as false

I have created 2 flows 

1. Is looking for a blank field

flow issue 1.PNG

 

The other is looking to see if the value is Yes in the form
flow issue 2.PNG

Super User
Super User

Re: Selecting Yes / no value from form always showing as false

@Crawfie13 

Hi there.  I haven't tried to replicate this, but I wonder if you can consolidate the two Flows with a Switch action?

 

Essentially, three paths based on the value of that field.

 

Let us know what you think.

 

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Crawfie13
Level: Powered On

Re: Selecting Yes / no value from form always showing as false

Hi thanks for that.

 

I created both flows to do the same thing - I will only use one.

 

I either need the flow to look for a null value in the first flow or

 

the flow to look for a yes answer / value in the second flow.

Both flows work but always deafult to false even if the value in the first flow is not null and the check box in the second flow is Yes

Super User
Super User

Re: Selecting Yes / no value from form always showing as false

I wonder if the Yes/No is being stored as 1/0 instead?  I'm guessing you already looked at the output from previous steps?  Can you post that portion?

Crawfie13
Level: Powered On

Re: Selecting Yes / no value from form always showing as false

Yes I looked at that -
flow support 3.PNG

Super User
Super User

Re: Selecting Yes / no value from form always showing as false

Ok, I just tested this...It does weird stuff if you don't answer, it's just "Blank" vs. "Null".  So what I did was add an expression that says "If this thing is empty, change the value to "Not Answered", otherwise pass through whatever the response was"20190809a.PNG

The expression text is: 

if(empty(body('Get_response_details')?['r9ac8dcc3bffb4ca99a13253407c6c81c']),'Not Answered',body('Get_response_details')?['r9ac8dcc3bffb4ca99a13253407c6c81c'])
 
(The r9ac8dcc3bffb4ca99a13253407c6c81c is just the name of the field on my form Smiley Happy )
Then, on my switch, instead of looking for "Null", I looked for "Not Answered".20190809b.PNG

 

Let us know if that helps.

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Crawfie13
Level: Powered On

Re: Selecting Yes / no value from form always showing as false

Everything I found online and in this forum suggests

 

@equals(triggerBody()?['value'], 'true')    fails

@equals(triggerBody()?['value'], true)     works

But as I cant use the advacned editor in the Condition I don't know where to put it.

 

Crawfie13
Level: Powered On

Re: Selecting Yes / no value from form always showing as false

Will try this shortly and let you know.


@edgonzales wrote:

@Crawfie13 

Hi there.  I haven't tried to replicate this, but I wonder if you can consolidate the two Flows with a Switch action?

 

Essentially, three paths based on the value of that field.

 

Let us know what you think.

 

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.


 

Community Support Team
Community Support Team

Re: Selecting Yes / no value from form always showing as false

 

Hi @Crawfie13 ,

 

From your description, the Yes/No field seems to be a Choice and only supports single selection.

Another question seems to be Text, please try to use the following configuration to achieve your needs.

108.PNG

 

If you are determining whether the Choice field is the expected value, you can directly configure the Option value to the right of the Condition.

106.PNG

If it is judged whether the Text field is empty, you could directly set the right side of the Condition to blank.

107.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Crawfie13
Level: Powered On

Re: Selecting Yes / no value from form always showing as false

I did try that at the start but regardless of the value (yes/No) it returned value of false, so did not work.


@v-bacao-msft wrote:

 

Hi @Crawfie13 ,

 

From your description, the Yes/No field seems to be a Choice and only supports single selection.

Another question seems to be Text, please try to use the following configuration to achieve your needs.

108.PNG

 

If you are determining whether the Choice field is the expected value, you can directly configure the Option value to the right of the Condition.

106.PNG

If it is judged whether the Text field is empty, you could directly set the right side of the Condition to blank.

107.PNG

Hope it helps.

 

Best Regards,


 

Super User
Super User

Re: Selecting Yes / no value from form always showing as false

@Crawfie13 

Hi again.  This is vexxing.  Can you post the output from the "Get Response Details" step?  I'm curious to see what is going downstream from there.


Thanks!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand 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!

Top Kudoed Authors
Users Online
Currently online: 205 members 3,972 guests
Please welcome our newest community members: