cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
staceylaney
Advocate I
Advocate I

SharePoint "Save All" button not saving on Edit Form

I created PowerApps New, View and Edit forms via SharePoint Customize forms for each.  The problem I'm having is that the native SharePoint "Save all" button does not save the Edit Form.  The "Save" button works just fine on the New Form, but not the "Save all" on the Edit Form.  I've added a Save button to the Edit Form so that users can edit and save changes, but naturally, they still gravitate to the SharePoint "Save all" button and it LOOKS and acts as if it's saved, but their changes do not get saved.

 

See screenshot of app settings for the forms, and let me know what I'm missing - I feel like it's something simple that I'm just overlooking.

 

Thanks...

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@staceylaney 

Typically, you would only have one form for edit and new, but if you have two forms for this same function, then you can utilize the form properties to determine if a submit is needed.

ex. 

If(RequestForm_New.Unsaved && RequestForm_New.Valid, SubmitForm(RequestForm_New));

If(RequestForm_Edit.Unsaved && RequestForm_Edit.Valid, SubmitForm(RequestForm_Edit));

 

It would be more ideal to simply have one form for edit and new though.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
RandyHayes
Super User III
Super User III

@staceylaney 

You need to look at the OnSave action of the SharePointIntegration object in your app.  That is the Formula that will execute when a user clicks on the standard Save All button in the form.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

The OnSave is set to "SubmitForm(RequestForm_New)" - if I change it to the Edit form ("SubmitForm(RequestForm_Edit)") will that disable the Save on the New Form, though?

RandyHayes
Super User III
Super User III

@staceylaney 

Typically, you would only have one form for edit and new, but if you have two forms for this same function, then you can utilize the form properties to determine if a submit is needed.

ex. 

If(RequestForm_New.Unsaved && RequestForm_New.Valid, SubmitForm(RequestForm_New));

If(RequestForm_Edit.Unsaved && RequestForm_Edit.Valid, SubmitForm(RequestForm_Edit));

 

It would be more ideal to simply have one form for edit and new though.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

The IF statement worked.  Thank you!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,214)