web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Not able to update Gal...
Power Apps
Unanswered

Not able to update Gallery item through Patch Function

(0) ShareShare
ReportReport
Posted on by 184
Hi,
 
Actually I am displaying Title values in the Gallery from SharePoint List.
 
There after on click of item in the gallery I am showing remaining column values in Edit Form.
 
Now on the update button click I am trying to update the values from Edit Form with item ID using Patch Function.
 
But I am getting an issue when I am trying to do so and let me know if I am making any mistake
 
Below is the Patch Function that has been used to update
 
Patch('Incidents',
    LookUp('Incidents',ID=ThisRecord.ID),
    {
        'Description':DataCardValue9.Text
    }
 
)
I have the same question (0)
  • mmbr1606 Profile Picture
    14,560 Super User 2025 Season 2 on at
    Not able to update Gallery item through Patch Function
    hey
     
    i guess you simply need to replace with ThisItem.ID
     
    so:
    Patch(
        'Incidents', 
        LookUp('Incidents', ID = ThisItem.ID), 
        {
            Description: DataCardValue9.Text
        }
    )
    
    if my answer helped please mark as verified answer
     
     
    cheers
  • NS-10041416-0 Profile Picture
    184 on at
    Not able to update Gallery item through Patch Function
    Sorry @mmbr1606,
     
    Its not working.
     
     
    Regards,
     
    Sudheer
  • Suggested answer
    NS-10041416-0 Profile Picture
    184 on at
    Not able to update Gallery item through Patch Function
     
    At last it worked after making the changes as below
     
    Patch(
        'Incidents',
        LookUp('Incidents', ID = IncidentsGallery.Selected.ID),
        {
            Description: DataCardValue9.Text
        }
    )
     
    Regards,
    Sudheer

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 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard