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 / Edit Gallery with Patc...
Power Apps
Unanswered

Edit Gallery with Patch function and new line item is created.

(0) ShareShare
ReportReport
Posted on by 58

Hi - Need some help. Is there a way to ensure that when you edit a gallery using patch function, it should not create a new line item.

If one uses form control, you can edit gallery and data gets edited in the same row, but if you use patch function, there is new line item that gets created with edited data. I dont want that to happen, any ideas how to manage that using patch?

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @luaxs4 ,
    If you will pass ThisItem instead of Defaults(SPList) in Patch function, new item will not be created.

     

  • luaxs4 Profile Picture
    58 on at

    Let me try it out.

  • luaxs4 Profile Picture
    58 on at

    "ThisItem" didnt not work. Note - I am using few modern controls. This works perfectly when using Defaults but when using "Thisitem", it gives me this red lines. Please help

    luaxs4_0-1682340123004.png

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard