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 / Patching between two s...
Power Apps
Answered

Patching between two separate SharePoint lists

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, 

 

I need some help with Patch function. I would like to take a value from "Edit Form" (SHarePoint1) and Patch it with another SharePoint List2

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

    Hi @Anonymous 

    Assuming that you have an ID field in SPlist2 called SPlist1ID, you would have something like this

    Patch(Splist2,Splist1ID=ThisItem.ID,{field:..
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@VS325,

    Based on the issue that you mentioned, do you want to patch a field value from SP list1 to another field in SP list2?

    Could you please tell me that what the column type of these two fields, are they the same column type?

    1). If you want to patch to an existing record, you should refer to the primary key within the SP list2.

    Try the following formula:

    Patch(SPList2,LookUp(SPList2,ID=1),{Title:DataCardValue1.Text})

    Note: I assume that you want to specify the first record to patch to, and the Title in SPList2 is the aimed column.

    DataCardValue1.Text represents the value of the control within the Edit Form.

    2). If you just want to save as a new record, you could directly use the Defaults() in the Patch() function.

    Patch(SPList2,Defaults(SPList2),{Title:DataCardValue1.Text})

    Hope it could help you.

    Regards,

    Qi

     

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 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard