cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RyanCharnock
Frequent Visitor

Multiple Forms Submit to SharePoint List with Customized Edit form

I have a single SharePoint list where the Entry form has been customized with PowerApps. The form has multiple tabs(Screens) and a different form for each screen (4 in total). I am currently using the patch function for the OnSave (see below) which works great for new entries but when used for and edit it clones the current record which has the udpates, and the orginial record is unchanged. 

 

I read that the Defaults(lstDjSR) - is used for creating new recrods, I am not sure how to do an update on the existing one. 

 

 

Patch(lstDJSR,Defaults(lstDJSR),frmJobInfo.Updates, frmDeliveries_1.Updates, frmInstructions.Updates, frmInstructions_1.Updates); 

ResetForm(frmJobInfo);

ResetForm(frmDeliveries_1);

ResetForm(frmInstructions);

ResetForm(frmInstructions_1);

RequestHide()

 

 

1 REPLY 1
Pat_Wickramage
Helper III
Helper III

As you have figured out, 'Defaults' is for new records.

 

Read the below article, it has the answer to your question.

 

https://powerusers.microsoft.com/t5/General-Discussion/Using-the-Patch-function-to-either-create-OR-...

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (62,889)