web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard