cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frello
Level: Powered On

Checkbox update SQL database

I've created a "Add user" screen where I want to be able to use a checkbox if a user is approved or not.

 

If a user is approved I want to be able to update my SQL database with true and if the checkbox is not checked I want it to be false. 

 

I've been trying to use the patch function but I can't seem to figure out to get it working. 

 

If seen a solution  here https://powerusers.microsoft.com/t5/General-Discussion/Checkbox-Value-needs-to-Patch-or-UpdateIf-to-... but this seem to be working with a gallery which i'm not using.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Vasii
Level 8

Re: Checkbox update SQL database

Hi @Frello,

 

could you pls share a bit more about your code to update your SQL database? Smiley Happy

And it's not working with a code like If(YourCheckbox.Value=true,true,false)?

 

Best regards

Vasii

2 REPLIES 2
Highlighted
Vasii
Level 8

Re: Checkbox update SQL database

Hi @Frello,

 

could you pls share a bit more about your code to update your SQL database? Smiley Happy

And it's not working with a code like If(YourCheckbox.Value=true,true,false)?

 

Best regards

Vasii

Frello
Level: Powered On

Re: Checkbox update SQL database

@Vasii The code you mentioned worked for me. I forgot to mention i'm fairly new to Powerapps, sorry if I was not clear in my question.

 

 

 

 

 

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 184 members 5,048 guests
Please welcome our newest community members: