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 / Patch function - comme...
Power Apps
Answered

Patch function - comment is adding to a new line in excel except of existing record.

(0) ShareShare
ReportReport
Posted on by 158

Hello All,

 

I have an excel file as a data source and I am trying to update record by adding comment to it using patch function. When I choose a record from my gallery and press icon to show input comment box it appears. Then I am writing something and press another icon "tick". It should add this to an existing record but instead it is adding a new line to my excel file with my comment. How do I fix that, please? I guess I need to add something to my patch code...: 

 

Patch( Table10, {Comment: TextInput2.Text })

marcy_pi_0-1655898789002.png

 

Comment in my command is an empty column and where You see yellow line on screenshot - this is ThisItem.Comment.

Thanks

Categories:
I have the same question (0)
  • Verified answer
    VeGETzX Profile Picture
    367 on at

    Seem like your code missing the part that tell which record need to be patched,

    Try this:

     

     

    Patch(Table10, Gallery.Selected, {Comment: TextInput2.Text})

     

     

    You will need to replace Gallery with the name of your gallery.

     

    Hope this help!

  • MP-13011217-0 Profile Picture
    158 on at

    Thank You so much! I was trying to do it more complicated way and simple solutions are always best 😄 thanks again!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard