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 Automate
Unanswered

True is NOT 1

(0) ShareShare
ReportReport
Posted on by 224

In my 30 years development, True = 1 in every language, but NOT in AUTOMATE!

In SQL Server, Boolean true is represented as 1

To our surprise

3ation_0-1605772622796.png

Would be actual be false! 

3ation_1-1605772665480.png

This is really annoying and I think it is an oversight by the product. 

 

We now have to review all our code again to make sure...  We use SQL Server, and in SQL Boolean is represented as 1.

 

 

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    HI @3ation 

     

    If you're comparing a bool value, the ideal way is to use the expression value:

    Screenshot 2020-11-24 at 09.03.49.png

     

    Then you're sure you're comparing with the correct value.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • 3ation Profile Picture
    224 on at

    Hi Manuel, We know how to work around it, BUT... When using SQL Connections, you have to say a Boolean field eq 1, in Flow, you have to say Boolean Value is equal True... in all languages I have programmed, the True = 1....  except here... which makes it an interesting issue, if I can not compare Boolean to 1 or 0, the flow checker should flag it! not just accept it and then different behaviour than expected in the applicaiton

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard