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 / Using the patch functi...
Power Apps
Answered

Using the patch function to add to a record

(0) ShareShare
ReportReport
Posted on by 56

Hello, I have been developing a Power App and using the patch function to add new records as well as update information within an existing record within a SharePoint List, but am now running into a scenario where I would like to keep the existing text and add to it as opposed to replacing it.  

If I use the below table for example:

NameAgeLocation
Ryan38Florida
Alex50Leon

 

Lets say I want to add the Country to each location.  I want to use the patch function to add USA and Mexico along with a delimiter respectively.  so that my new entry would be:

NameAgeLocation
Ryan38Florida, Unite States
Alex50Leon, Mexico

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @RyanBourbon1 

    Patch(ds,ThisItem,{Location: ThisItem.Location & ", " & ThisItem.Country})

  • RyanBourbon1 Profile Picture
    56 on at

    Thanks for the reply Dr. Rick.  that is effectively what I have been trying to accomplish but am running into an issue identifying what text is currently there because I am looking up the entry based on another columns criteria.  

    RyanBourbon1_0-1670278446029.png

     

    based on my function posted in the picture, I am identifying which row to update by looking it up based on a selection from a dropdown.  How would I then call out the text from the completion notes column on the same entry to then add my new notes to it?

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @RyanBourbon1 

    Not enough information. but assuming you have a list of Locations and Countries that you can lookup,  

    Patch('CTC-Issue Tracking', LookUp('CTC-Issue Tracking',ID=IssueCountDropdown.ID),
     {'Assigned to': assignedToDropdown.Selected.'Assigned to', 
     'Date Updated: Today(),
     'Completion Notes': Concatenate(
     updateIssueInputNotes.Selected.Location,", ",
     LookUp( 
     LocationsList,Location = updateIssueInputNotes.Location
     ).Country
     )
     }
     )

    .SelectedText has been deprecated and should not be used.

      

  • RyanBourbon1 Profile Picture
    56 on at

    This worked well. thanks for the advice on using the concatenate function.  

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard