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.

Report
All responses (
Answers (