I swear Microsoft is making things super difficult for super basic things.
Why is it so hard to check the value of a sharepoint Yes/No column in a flow? I checked 10 responses in this forum and they are all different.
Why do I need to:
- initialize a special variable;
- deal with triggervalues and stuff;
- deal with "null" values because apparently "unchecked" means "null"???
To simply check a Yes/No field. Why do I need to reinvent the wheel for this?
Switches are used for checking the value of a text string. If you just want to do something different based on whether a yes/no field is yes or no then just use a condition, not a switch. The following checks a SharePoint field to see if its Yes. Nothing else is required.
In the condition, convert Yes no column to boolean and compare it with true... I believe this is simple way.
Can you convert left expression to bool as I requested and then test?
I can't see either function you applied in your screenshot.
1. What's the function on the left side of the condition?
2. What's the function in the "Set variable"?
3. How do I deal with "null" since an unchecked value in sharepoint is considered null?
Update. Here's what I put in the left side of the condition.
Still, no matter what I do, the result is always false.
Did you set a default on the column? Is it a standard Yes/No column in SharePoint or is it a Choice column with Yes/No as the Choices? What trigger are you using and how are you retrieving the Yes/No field?
As long as you set a default it should not be null whether its set to either yes or no. As you can see from the following screenshots it works as I described.
When field is set to Yes
When field is set to No
Could you provide some screenshots of your SharePoint list definition and the flow. I'll try to suggest why its not working for you.
I have spent two hours today dealing with the same issue with no result. The Yes/No field does not equals to null, false, true, False, True, (the same values into the expressions dialog), or any other idea I could have. Also, when the inputs of the condition are supposed to be null (empty), the condition receives no input and it is set to true! (Condition was that Yes/No fields are true).
I would never have imagined that evaluating a bool variable could be more difficult than programming in brain**bleep** language.
Can someone explain how does boolean variables are managed in power automate?
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.