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 / Patch Checkbox Value i...
Power Apps
Unanswered

Patch Checkbox Value in a Gallery to a SharePoint with a YES/NO data type column

(0) ShareShare
ReportReport
Posted on by 23

Hi All, 

 

I would like to ask for help how to patch the checkbox values in a Gallery to a SharePoint with a YES/NO data type column.

Sample_1.png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,050 Most Valuable Professional on at

    Hi @JanCarla ,

    You simply patch the Value of the checkbox

    Patch(
     ListName,
     LookUp( . . . . .),
     {YesNoColumnName: CheckboxName.Value}
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • JanCarla Profile Picture
    23 on at

    Is your answer applicable to checkboxes inside a gallery? If yes, could you please elaborate how. Thank you.

  • JanCarla Profile Picture
    23 on at

    Is your answer applicable to checkboxes inside a gallery? If yes, could you please elaborate how. Thank you.

  • WarrenBelz Profile Picture
    155,050 Most Valuable Professional on at

    @JanCarla ,

    Yes as long as you patching the current record from inside the gallery.

  • JanCarla Profile Picture
    23 on at

    But all checkboxes return true in my SPO List although I did not check them all.

  • WarrenBelz Profile Picture
    155,050 Most Valuable Professional on at

    @JanCarla ,
    If you patch the checkbox Value, it will patch false if the box is unchecked - you did not mention multiple boxes - what is the code you are using (in Text please)

  • JanCarla Profile Picture
    23 on at

    Sorry, but I am still new to power apps. I don't know where to start when patching multiple checkboxes in a gallery. Would you be kind to share how to do it?

  • WarrenBelz Profile Picture
    155,050 Most Valuable Professional on at

    @JanCarla ,

    OK - it is better to patch them one at a time, but you would use something like (for updating existing records)

    Patch(
     SPListName,
     ForAll(
     GalleryName.AllItems As aPAtch,
     {
     ID: aPatch.ID,
     YesNoField: aPatch.CheckboxName.Value
     }
     )
    )

    For new records, just leave out the ID line.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard