The duplicate record issue happens because when the user navigates back to the form, Power Apps switches the form into New mode again. As a result, clicking Submit creates a new item instead of updating the existing one.
To avoid this, store the first submitted record in a variable and reuse that same record throughout the process.
Screen 1 — Form OnSuccess
Set(varParentRecord, Self.LastSubmit);
ResetForm(Self);
EditForm(Self);
Navigate(YourSecondScreen);
Screen 1 — Form Item Property
varParentRecord
Screen 2 — Forward Button (Using Patch)
Patch(
'YourList',
LookUp('YourList', ID = varParentRecord.ID),
{
Field1: value1
}
);
Navigate(YourSecondScreen);
New Record Button
Use this when starting a completely new submission.
Set(varParentRecord, Blank());
ResetForm(YourFormName);
NewForm(YourFormName);
Navigate(FirstFormScreen);
Always bind the form’s `Item` property to `varParentRecord` and switch the form into Edit mode after the first save.
This ensures:
- Navigating back does not create duplicate records
- The same SharePoint item continues to update
- Users can move between screens safely without creating extra entries