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 3 fields to o...
Power Apps
Answered

Patching 3 fields to one record in a second sharepoint list from a Power App Form

(0) ShareShare
ReportReport
Posted on by 202

Hi

I have one PowerApp Form and two Sharepoint lists - I need the 'Employee Code' (also known as Clock Number), 'First Name' and 'Last Name' to populate both lists.

The syntax I'm using is on the submit button and reads ;

Patch(RTWEmpCode_SP, Defaults(RTWEmpCode_SP), {EmployeeCode: DataCardValue154.Text});
Patch(NewStarter_1, Defaults(NewStarter_1), {ClockNumber: DataCardValue154.Text});

SubmitForm(Form3)

 

This syntax populates the employee code as I expected, I then did the same patch for both first and last name not realising, at the time, that a patch populates a new record for each patch so it generated 3 records one for each patch. How do I get these three fields to populate into one record?

 

The primary list is from a new starter form and I want these three fields to populate a secondary list that just has the employees listed as this is used for other forms that I have created.

Many thanks

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

    Try

     

    Patch(RTWEmpCode_SP, Defaults(RTWEmpCode_SP), {EmployeeCode: DataCardValue154.Text, 'First Name': DataCardValueX.Text, 'Last Name': DataCardValueY.Text});
    Patch(NewStarter_1, Defaults(NewStarter_1), {ClockNumber: DataCardValue154.Text, 'First Name': DataCardValueX.Text, 'Last Name': DataCardValueY.Text});

    SubmitForm(Form3)

     

    You may need to replace DataCardValueX and DataCardValueY to match with your text input name for each field.

  • russelln1 Profile Picture
    202 on at

    @VeGETzX Exactly what I needed! thank you 

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard