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 Update a ShareP...
Power Apps
Answered

How to Update a SharePoint list without using a gallery

(0) ShareShare
ReportReport
Posted on by 134

Hi All,

 

My colleague has a PowerApps app that she created using SharePoint Integration. The app created the original Form1 with the default SharePoint integration functions (OnEdit, OnSave, OnView, etc.), however the SharePoint list that the app is associated with requires another form (Form2) that will submit all the data entered on Form1 along with an attachment and comments entered on Form2. Because of this, Form2 has a separate button (from the SharePoint Integration "Save" button) that is supposed to update the list item that is selected. There is NOT a gallery in this app, we are only utilizing the SharePoint list as the "gallery". Here is the issue:

 

We are using a Patch function in the OnSelect property of the button on Form2 and it is creating a new item on the SharePoint list instead of updating the selected item. We are using the Defaults in the Patch function, which I have identified is the issue, however, without a gallery, we cannot figure out a function that will work to only update the selected item. We have tried to use "ThisItem" and LookUp, but both require that you have a gallery in your app to look the item up from. How can we get this to work?

Categories:
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @LS579 ,
    If you are using forms, then you can use SharePointIntegration.SelectedListItemID in your patch function :
    Patch(ListName, LookUp(ListName, ID = SharePointIntegration.SelectedListItemID), {<columns you like to update>})

     

     

  • LS579 Profile Picture
    134 on at

    That's what we were looking for! Thank you!

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard