Skip to main content

Notifications

Power Apps - Building 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:
  • MP-13011217-0 Profile Picture
    MP-13011217-0 158 on at
    Re: Patch function - comment is adding to a new line in excel except of existing record.

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

  • Verified answer
    VeGETzX Profile Picture
    VeGETzX 364 on at
    Re: Patch function - comment is adding to a new line in excel except of existing record.

    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!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard