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 Automate / Flow fails on Yes/No c...
Power Automate
Unanswered

Flow fails on Yes/No column (Big Flow)

(3) ShareShare
ReportReport
Posted on by

So I have a big logic flow with a lot of conditions. However it seems that it always fails on Yes/No (boolean) column check. And even if the condition is true it returns No.

 

Here is the flow:

issue1.png

 

It should ahve went to Yes under the Is Approved by Supervisor.

At first I thought maybe it was set not correctly so I check at the Output of the SharePoint list and it apears to be checked correctly.

 

Here is the row from the output:

issue2.png

 

 

So it should go to yes but it does not.

Here is how the condition is programmed:

 

Basic View:

issue3.png

 

Advanced View:

issue4.png

 

have you guys run into similar problems with Yes/No columns? Any way to make it work? Really appreciate any help, thanks!

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi MartynasJurkus,

     

    I assume that column type of column “SuperviorApproved” should be a Yes/No column type.

     

    If yes, please try to convert the parameter of the value to a Boolean using function bool, and in Advanced mode, the Condition should be configured likes @equals(triggerBody()?['Approve'], bool('true')).

     

    To test this issue, I create a list with a Yes/No column type. Then create a flow looks like below, with the Condition configured as @equals(triggerBody()?['Approve'], bool('true')). It works as expected.

    3.PNG

     

    About function bool, please check this documentation for more details:
    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Please try it on your side and let me know if it works for you.

     


    Best regards,
    Mabel Mao

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @v-yamao-msftThanks Mabel. I actually went ahead and experimented with several different options and found out that the only reason it was not working is that when I make it in basic view it generates this advanced function:

    @equals(triggerBody()?['SupervisorApproved'], 'true')

    And the problem with this is that it checks for a string 'true', instead of a boolean value for true. Changing the function to:

    @equals(triggerBody()?['SupervisorApproved'], true)

    Solves the issue as now it checks for actual boolean true instead of a string 'true'.
    I think this should be considered as a Flow bug, since basic view generates a wrong function for Yes/No columns.

  • RKushner Profile Picture
    127 on at

    I have the same problem and I still think that it is a bug, but with a workaround, because when I created these conditions, I choose "Yes" from a dropdown list that clearly recognized the two valid values for the boolean (yes/no) field.

  • gunjan Profile Picture
    82 on at

    Give this as a try 


    in a compose  bool(SupervisorApproved) and continue to your comparision because (the boolean value should be shown in blue

    color) where as text in simple black.solution boolean.png

  • satya Profile Picture
    40 on at

    i have tried with below conditions but no use. it is always showing the false 

    @equals(body('Create_item')?['Discarded'], bool('true'))

    @equals(body('Create_item')?['Discarded'], bool(true))

    @equals(body('Create_item')?['Discarded'], true)

    @equals(body('Create_item')?['Discarded'], 'Yes')

     

  • rys Profile Picture
    69 on at

    Try @equals(items('Apply_to_each')?['Discarded'], true)

  • wackawacka Profile Picture
    23 on at

    you need to do the comparison on the left hand side first and then compare if its a true value:

     

    this worked for me:

    @equals(equals(body('Get_response_details')?['rbe8bb91d66fb4e03bbad0998c12e9e24'], 'false'), true)

     

    so in your case:

     

    @equals(equals(body('Create_item')?['Discarded'], 'true'),true)

     

    inner equals is checking your create item discarded if its equal to true to get a bool value, then compare that to the outer equals if its true or not.

  • Community Power Platform Member Profile Picture
    on at

    Microsoft removed the "Edit in Advanced Mode". How would you do this with Expressions in the basic editor?   The basic editor requires two fields to be populated.  

     

    no advanced mode.png

  • wackawacka Profile Picture
    23 on at

    to get around this. In the left side of the condition click on it. It would popup the dynamic content tab. click on expression and type "equals". now in the example i gave you need to split it into two:

    image.png

    @equals(equals(body('Create_item')?['Discarded'], 'true'),true)

    =

    equals(body('Create_item')?['Discarded'], 'true')

     

    so when you type equals with the open and close bracket click inside it and select dynamic content and then select the object, mine is create item, then go back to expression and then type: , 'true'

     

     

    so in the expression you would see 

     

    equals(body('Create_Item'),true)
     
    image.png
     
    click the ok button, now you would have the first half (inner half of the condition), for the right side click on the box
    and select expression again, this time type true and click ok. This would be the outside bool condition.
    image.png
    so to recap, left side is inner condition, using expression equals we get a bool result and then we compare that result to the right side if its true(outer expression).
     
     
     
     
  • Community Power Platform Member Profile Picture
    on at

    Conceptually, this is making sense now. Thank you for that. Where I'm stuck is that in the left side, I can't select the SharePoint column 'Notify'. Once I do the open bracket, I only have 2 choices for the SharePoint list and neither is a column. 

     

    sharepoint choices.png

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard