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 Apps - Power Apps Pro Dev & ISV
Suggested answer

Not able to update Gallery item through Patch Function

(0) ShareShare
ReportReport
Posted on by 146
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,355 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
    146 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
    146 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard