Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Update Share Point using Power Apps Patch Function Not working as desired

(1) ShareShare
ReportReport
Posted on by 155
Hello All,
 
I have a Share Point list page (Waivers), in which I am using Patch function to insert into the share point list page. That part works fine, but when I try to update I am unable to get the values from the main page
Here is my list page.
 
When I click on either of the titles, its always pulling first row with ID 21. 
 
 
Here is the code I have written to pull ID into a variable and then use in the default function of a text field which. you can see above with value 21, even when I click on 22 row. 
Set(
    varWaiverId,
    LookUp(
        Waivers.ID,
        ID = ThisRecord.ID
    )
).
 
 
Categories:
  • Verified answer
    PraveenC Profile Picture
    155 on at
    Update Share Point using Power Apps Patch Function Not working as desired
    I was able to resolve the issue using  - SharePointIntegration.Selected.ID
  • PraveenC Profile Picture
    155 on at
    Update Share Point using Power Apps Patch Function Not working as desired
    My apologies for confusing you all with Gallery.
     
    Please assume if there is no Gallery, how would I retrieve the information from SharePoint List page?
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Update Share Point using Power Apps Patch Function Not working as desired
    Hi Praveen,

    Lets say the gallery in your image is Gallery1, then for text label on the top just use - 
    Gallery1.Selected.ID
    To filter Gallery1 based on your selection of your main page or gallery. Lets say it is called MainGallery, just use - 
    Filter(Waivers,ID=MainGallery.Selected.ID)
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • PraveenC Profile Picture
    155 on at
    Update Share Point using Power Apps Patch Function Not working as desired
    FLMike, 
     
    I am using share point list page.
     
    I am using gallery just to show/see what details are being pulled. I will eventually remove the gallery.
     
  • Michael E. Gernaey Profile Picture
    44,768 Super User 2025 Season 1 on at
    Update Share Point using Power Apps Patch Function Not working as desired
    Hi,
     
    There is no reason to use a Variable and I suggest not doing it.
     
    Simply say Gallery.Selected.ID or whatever field you want to use.
     
    You keep talking about pages. Are these Power Pages, or Forms (Custom Forms) or an App

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1