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 / Trying to update the s...
Power Apps
Unanswered

Trying to update the same row of a table, but new data going to new row.

(0) ShareShare
ReportReport
Posted on by 737

Hi all,

 

I originally posted here Solved: It's simple right ? I want to update rows in an ex... - Power Platform Community (microsoft.com)

which was awesome information and got me in the right direction in terms of how to do what I needed, problem is:

 

When I try to update an existing row in a table, a new row is inserted with the new data only.

I want the new data to append to the existing row.

 

I have an app that has multiple pages and essentially acts as a branching form. I want to keep all the data in the one table.

 

On my landing page / main form I have some textboxes and I am saving the users Id input to the variable 'varGUID'

 

 

 

Set(varGUID, Office365Users.MyProfile().Id);
SubmitForm(formUserDetails)

 

 

Once the form is submitted, I move to the next page which has a new form.

I have two Text input boxes InputControllingInterest and InputCompanyOfficer
I threw the below code into the button of the page

 

 

Patch('tblConflictOfInterests', LookUp('tblConflictOfInterests','Employee Number' = varGUID, { 'Shareholdings Controlling Interest': InputControllingInterest.Text, 'Shareholdings Company Officer': InputCompanyOfficer.Text, 'Employee Number': varGUID }));

 

 

Then add a Navigate(pageX) below and all seems to work.

 

But does it ??🙂

To do some troubleshooting to confirm the varGUID is being parsed from the first page I set othe InputControllingInterest Textbox default to varGUID.....and it displays as expected..yay the variable works..

 

Issue is that clicking the button inserts the data as a new row rather than updating the existing.. and I can't figure out why 

 

Any help is greatly appreciated, thank you.

Categories:
  • turnerj3 Profile Picture
    2,039 on at

    I know you have probably checked this but is your Varguid and employee number written exactly the same? It maybe worth collecting a collection with your lookup to make sure it is finding the row.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard