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 / Update Sharepoint list...
Power Apps
Unanswered

Update Sharepoint list column from PowerApp check box

(0) ShareShare
ReportReport
Posted on by 517

Hi all

 

I have a choice column from a SP list like this:

 

diegoandre10_0-1629522748757.png

 

In my power app, I have first added a blank vertical gallery and within a checkbox.

 

The gallery items looks the following:

 

diegoandre10_1-1629522900176.png

 

 

And the text property for the checkbox:

 

diegoandre10_2-1629522931751.png

 

 

What should I do next in order to update the SP list?

 

Not sure what to enter on the oncheck property for example.

 

Thanks!!

 

 

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

    @diegoandre10 ,

    Not sure why you are using a checkbox for a Choices field, but assuming Flag as ERM is the only Choice, you can do the following.
    OnCheck

    Patch(
     'BCM LATAM',
     {ID:SharePointIntegration.Selected.ID},
     {
     'ERM Issue':
     {Value:Self.Text}
     }
    )

    OnUnCheck

    Patch(
     'BCM LATAM',
     {ID:SharePointIntegration.Selected.ID},
     {
     'ERM Issue':
     {Value:Blank()}
     }
    )

    Default of the CheckBox

    SharePointIntegration.Selected.'ERM Issue'.Value = Self.Text

     

    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.

  • diegoandre10 Profile Picture
    517 on at

    Hey @WarrenBelz 

     

    It's now working when I add a new item and check the box. It gives me this message when i click on the box:

     

    diegoandre10_0-1629526278331.png

     

    How can i fix it?

     

     

    You're right about the choices, it's probably better to use single line of text maybe? How would that be then?

     

    Regards!!

     

     

     

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @diegoandre10 ,

    Please ignore that message - it is not an error.

    For a Text field

    OnCheck

    Patch(
     'BCM LATAM',
     {ID:SharePointIntegration.Selected.ID},
     {'ERM Issue':Self.Text}
    )

    OnUnCheck

    Patch(
     'BCM LATAM',
     {ID:SharePointIntegration.Selected.ID},
     {'ERM Issue':Blank()}
    )

    Default of the CheckBox

    SharePointIntegration.Selected.'ERM Issue' = Self.Text

     

    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.

     

     

  • diegoandre10 Profile Picture
    517 on at

    Hi @WarrenBelz 

     

    I changed the SP to single line of text and removed the vertical gallery. Just left the check box.

     

    I get the following error after trying your code:

     

    diegoandre10_0-1629564475952.png

     

    diegoandre10_1-1629564501880.png

    What should I do ?

     

    Thanks!!

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @diegoandre10 ,

    Go to your SharePoint list and the List Settings, select Title and uncheck the requirement for information as below

    WarrenBelz_0-1629578455172.png

     

    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.

     

  • diegoandre10 Profile Picture
    517 on at

    Hi @WarrenBelz 

     

    I need title to be a mandatory field for the user.

    Regards.

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @diegoandre10 ,

    Then there is something wrong with your record - you are patching an existing record which should have data in Title.

     

    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.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard