web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Boolean, save to MySQL...
Power Apps
Unanswered

Boolean, save to MySQL as -1, not as 1

(0) ShareShare
ReportReport
Posted on by

Hello community,

 

I have an App with functions like this:

 

 

Patch('Backend.tblNachverfolgung';
 First(Filter('Backend.tblNachverfolgung';nachvID = First(colProjektDetails).nachverfolgungID));{nachvTagesplan: If(chkTagesplan.Value;-1;0)})

 

 

I simply try to patch a boolean value into a MySQL table. The field is 'nachvTagesplan' and of the type tinyint(1) in MySQL. The Table stores false as 0 and true as -1. I am using this table also in MS Access and works fine there.

If I now try to patch a true Value from my PowerApps it always stores it as 1. So I have the problem, that my MS Access isnt working any longer because of the missing '-'.

 

Is there a possibilty to tell Powerapps it has to store true values as '-1' and not as '1'?

i also tried things like

 

 

{nachvTagesplan: chkTagesplan.Value}
or
{nachvTagesplan: If(chkTagesplan.Value;Int(-1);0)}

 

 

 

Any ideas?

Thanks a lot!

Categories:
I have the same question (0)
  • timl Profile Picture
    37,246 Super User 2026 Season 1 on at

    @Ferdl 

    If the underlying data type of your nachvTagesplan column is tinyint, it's necessary to patch either -1 or 0 in the way that you're currently doing.

    There's no way in Power Apps to automatically coerce Boolean true values to -1.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard