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 / How to Patch Gallery C...
Power Apps
Answered

How to Patch Gallery Checkbox values to a SharePoint List

(0) ShareShare
ReportReport
Posted on by 492

Hi All

I am trying to patch this gallery checkbox to a SharePoint list, and I am not getting any joy.

 

NC12_0-1688540862070.png

The checkbox is linked to a multiple selection choice column in SharePoint where I am trying to patch back to.

 

I also have PowerApps fields on the same canvas and they are patching fine.

NC12_1-1688542293714.png

 

Thanking you in advance.

 

 

Categories:
  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @NC12 ,

    Please post the code (in Text) you have attempted and the result of this.

  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @NC12 ,

     

    May I ask is the checkbox linked to every option form a multiple selection choice in the SharePoint list?

     

    According to the screenshot you offered, we assume the Items of the gallery is the options.

     

    The data source we created like this.

    vhanytianmsft_1-1688545266217.png

     

     

    The Gallery we created.

    vhanytianmsft_2-1688545266220.png

     

     

     

    OnCheck of Check Box:

    Collect(Col,ThisItem)

    vhanytianmsft_3-1688545266221.png

     

     

    OnUnCheck of Check Box:

    Remove(Col,ThisItem)

    vhanytianmsft_4-1688545266222.png

     

     

    The Button for Patch the data source.

    Patch('0715Muti',Defaults('0715Muti'),{Title:"1",Muti:Col})

    vhanytianmsft_5-1688545266224.png

     

     

     

    vhanytianmsft_6-1688545266225.png

     

    vhanytianmsft_7-1688545266225.png

     

     

    Hope this will help you.

     

    Best Regards,

    Tina

  • NN-21081740-0 Profile Picture
    492 on at

    Hi v-hanytian

     

    You are spot on!!

    I had not set the OnCheck and OnUncheck properties which was the reason why I did not have the collection name on my syntax. I was pointing directory to the checkbox.

     

    So... It's working now!!

     

    NC12_0-1688552559588.png

    NC12_1-1688553653612.png

     

     

    THANK YOU SO MUCH!!!!

     

     

  • NN-21081740-0 Profile Picture
    492 on at

    Good day Warren

     

    I am now sorted, thanks to Tina.🙂

     

    Thank you for your contribution, much appreciated.

     

    kind regards

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard