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 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.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 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
    153,084 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
    153,084 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
    153,084 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard