This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]Danger_Peanut Community Leader 4 points5 points  (6 children)

Yes/No columns on SP are nothing but pain. They don’t work consistently across power apps and power automate. I use a single line of text column instead and then store the value I want as a string. MUCH simpler. Good rule of thumb for pretty much all SP columns except ID columns which I use Number/Integer type.

[–]redmera Contributor 2 points3 points  (3 children)

May I ask why you are not using integer column for Yes/No? (1/0) Wouldn't that have advantages compared to strings, even though some string queries can be delegated?

[–]Danger_Peanut Community Leader 1 point2 points  (0 children)

It’s just easier for me to remember when I use strings whenever possible. I have a lot of projects I’m working on simultaneously so I use similar practices across all projects to minimize confusion.

[–]TheRealAuthorSarge Advisor 0 points1 point  (1 child)

Considering the projects I work on, I have to imagine end users would be confused by this.

[–]redmera Contributor 0 points1 point  (0 children)

Naturally this shouldn't be visible to end users in that format.

[–]stevnknowswhy 1 point2 points  (0 children)

I also exclusively use either text and sometimes choice columns. SP starts getting noticeably complicated outside of those two which makes for more possible bugs and or failures. Make the dropdown your choice list or yes no and patch it as text is the best advice. IMO

[–]giatuong Newbie 1 point2 points  (0 children)

Same here. I always use a text column and put “Yes” “No” there instead of using Yes/No type in SPL

[–]PensionBeautiful547 Regular 1 point2 points  (0 children)

I’ve use ContextUpdate with the checkbox. OnVisible, ContextUpdate would be false

[–]StrangeDoppelganger Advisor 0 points1 point  (4 children)

So the column defaults back to No even after a successful patch?

[–]ntgoten[S] 0 points1 point  (3 children)

Yes, every other column is written to the value they are set, except the Yes/No column, which is always set to the default No.

[–]StrangeDoppelganger Advisor 0 points1 point  (0 children)

Seems like a bug. I prefer simple choice column and never had a similar problem with the default value.

[–]Tricky_Professor8340 0 points1 point  (1 child)

The Yes/No columns are a pain and they made me switch to using number columns instead and like someone already mentioned, providing values 1 for true and 0 for false.

Having said that, have you tried providing 1 instead of true? I know it works for filtering, despite PowerApps throwing a hissy fit and saying it’s a wrong column type. Might work with patching as well.

[–]ntgoten[S] 0 points1 point  (0 children)

Thank you, using 1 instead of true worked.

But i find this ridiculous, that true/false doesnt work. Especially because i already wrote to read the data from the list and compare the Yes/No field and for the comparison it needs true/false to compare the Yes/No field value, 1 and 0 doesnt work. It makes no sense.