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
Suggested Answer

Patch function

(0) ShareShare
ReportReport
Posted on by 5
I have 2 sharepoint list.
List 1: i have 3 records, 5 columns: A B C D. I want to update a source field of column A of the first record to a target field of column B of List 2.
But when i use Patch() function then value of source field of second record in List1 that update to target field of column B in List 2.
 
Please to show me.
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    1,998 Super User 2026 Season 1 on at
     
    Please try below code:
     
    With(
        {
            varSource: LookUp(List1, ID = 1) //Pass the record ID that record value you want to update in List2
        },
    
        Patch(
            List2,
            {ID:1}, //Pass the record ID where you want to update it
            {
                ColumnB: varSource.ColumnA
            }
        )
    )
     
    This will first take the value from the given record in List1 and then update Column B in List2 with the Column A value from List1.
     
    Note:  Currently, I have passed Record 1 and Record 2 IDs manually just as an example to get and update the records, You can use variables or selected record IDs to make it dynamic based on your requirement.
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

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 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard