cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Anonymous
Not applicable

Re: Checkbox update SQL database

Hi @Frello,

 

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

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

 

Best regards

Vasii

View solution in original post

2 REPLIES 2
Highlighted
Anonymous
Not applicable

Re: Checkbox update SQL database

Hi @Frello,

 

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

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

 

Best regards

Vasii

View solution in original post

Highlighted
Frequent Visitor

Re: Checkbox update SQL database

@Anonymous 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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,442)