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 Apps
Answered

Partial Patch

(0) ShareShare
ReportReport
Posted on by

I am making a SharePoint list to keep track of loans that came from a different organization. Each record is a member's loan, and one of the columns ('Current Lender') keeps a record of where the loan came from. This column needs to hold multiple values, so I concatenate the names of the different businesses together with commas when the user selects them (ex. "Wells Fargo, Capital One, Ventura").

 

Everything is working fine so far, but I have a list on the backend that holds all the names of the different places these loans can come from; and here I can add, update, and delete these names.

 

cmitchener_0-1663688327123.png

 

 

I have figured out the code for a similar field (one that only accepts one entry) so that when one of the names is updated on the backend (if I made a spelling error or something), it updates every record that has the old value:

 


Patch(
   'My List',
   LookUp('My List', 'Info Column' = OldValue),
   {'Info Column': NewValue}
);

 

 

My problem is I was hoping to do this with the Current Lenders as well, but I only want to replace the name of the current lender I updated (ex. if a record has "Capital Two, Wells Fargo, Ventura", I may only want to change it to "Capital One, Wells Fargo, Ventura" without replacing the whole field). Long story short, instead of patching a whole field I need to replace part of the field. Is there a way to patch so that it keeps all of the info in every column unless it can find a specific string, like some sort of substitute?

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

    You can use UpdateIf and Patch to just modify the column and not affect other values - https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-update-updateif

  • cmitchener Profile Picture
    on at

    Thanks for the tip! I did slightly modify the UpdateIf code to look like this, in case anyone that looks at this wonders how to do it:

     

    UpdateIf(
       'My List',
       Find(OldValue, 'Info Column') > 0,
       {'Info Column': Substitute('Info Column', OldValue, NewValue)}
    )

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard