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

Saving a SharePoint List Item after Edit on Gallery Form

(0) ShareShare
ReportReport
Posted on by 1,360

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:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 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,360 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
    68,717 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,360 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

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