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 / Saving a SharePoint Li...
Power Apps
Answered

Saving a SharePoint List Item after Edit on Gallery Form

(0) ShareShare
ReportReport
Posted on by 1,362

Hello Power Apps Professionals,
This board has been extremely helpful in helping me solve the issues I bumped up against!
My news situation is that I have a Power App Gallery Form that has some filtering, and I can choose a record to edit but that is where it stops. I need to be able to not only edit the record but save it.
It's hard to believe this is that complicated to solve.
Any direction is appreciated.
Putting a button on the item as shown, which puts buttons on all subsequent items below is what I am looking for but I cant figure out the logic that would go in the OnSelect property for the Save Button. 

golfnutt82_0-1642616210886.png

For some reason the "New Role Owner" doesnt act like a person/group field and recognize a person.
Also, for the Items property I have some logic in there for the search and filtering.

golfnutt82_0-1642616554783.png

 

 

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Lets try to handle the problems one at a time.  First for saving.  The OnSelect of the button would be a Patch() statement something like this.  In the record that is the third parameter you'll need to supply the fieldnames: values for each field you want to save.  You also must include values for any required fields, like Title

    patch(datasourcename, thisitem, {Title: thisitem.Title, otherfield: otherfieldvalue, ...})

    For the other problem can you explain what kind of SharePoint column the roleowner is?

     

  • golfnutt82 Profile Picture
    1,362 on at

    Hi and thank you for responding.
    The only editable field is the New Role Owner field, which is a PersonGroup field where I can enter in the last name of the user, and it shows a list of users.

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Person/Group fields need to be patched in a particular record format.  Here's a post that shows the format required for patching a person/group field.

    PATCH A SharePoint Person Column In Power Apps - Matthew Devaney

     

    Whether the other fields are represented in the Gallery or not. A Patch must always include values for all the required fields.  By default this would just be the title field. If any other fields in SharePoint have been marked as required they will need to be included in the Patch.

  • golfnutt82 Profile Picture
    1,362 on at

    Excellent! Thanks for your assistance

     

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard