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 / Patching single Sharep...
Power Apps
Unanswered

Patching single Sharepoint row from multiple submissions from different forms Canvas app

(0) ShareShare
ReportReport
Posted on by 433

Hello Power users,

 

I built a power app, canvas app form on Sharepoint. I have a screen where user can submit their form. Receiver will be viewed in gallery and select the record they wanted to view. I did build gallery with set(Globalvar, Gallery.Selected). I made sure display screen uses GlobalVar.Value to display in display form. Now after they view record they take action on the form with filling in choices from drop down that are on the same sharepoint row(I mean same ID). They need to update their inputs onto the same record. 

 

How do I patch the values to existing record. This has multiple patches to make on the same record.

 

Any suggestions or help please? 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @KrishR 

    $1.pngWith the gallery chosen at the bottom of the screen, make it's OnSelect property: Set(Globalvar,ThisItem). The user would select the record in the gallery and then go to the Edit form (say EditForm1) which will hold all the fields in that record. It would have the same datasource as the gallery and have an Item property: Globalvar.  If the gallery's datasource is a collection or has been shaped with AddColumns, or another data shaping function, then the Item property of the form would be Lookup(datasource, ID=Globalvar.ID) instead of just Globalvar. 

    After modifying  the record, the User would press a button outside of the form with the OnSelect property: SubmitForm(EditForm1). Nothing else should be following this function in the button's OnSelect.  If you wanted the user to return to the gallery after successfully modifying the form, then put: Back() in the OnSuccess property of the form.   There is no need for a Patch() function as the SubmitForm() does everything. If some of the fields are required, you can click on the card in the form for that field and set the Required property of the card to true.  If the user tries to submit the form without filling out these fields, a red error message will pop up and the form will not submit until data is put into that control. 

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