cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amydixanne
Helper I
Helper I

Help - Savings Powerapps to Sharepoint

Hi all,

 

I am creating a new powerapp to work with a Sharepoint list which is integrated into Teams.

I am using the "Save" button on the Sharepoint list rather than creating my list.

I have completed the Sharepoint Integration bits (onsave, on reset etc). I am struggling to get patch to work in the "OnSave" so it currently is not saving the affected user.

Also, I have tried on the OnSave to navigate to a confirmation page which does not work. Is there a way to get the "New" form to close automatically when the "Save" button is clicked?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Mr-Dang-MSFT
Power Apps
Power Apps

Hi @amydixanne,

By default, the OnSave action is set to:

SubmitForm(SharePointForm1)

This saves the record and exits the app afterwards.

 

If you choose to use Patch instead, you might need to manually do an Exit():

Patch(your_formula_here);
Exit()

And if you want the user to see a success screen, you would write a navigate formula.

Patch(your_formula_here);
Navigate(SuccessScreen,Fade)

Then you could insert a timer on the SuccessScreen that automatically Exits the app OnTimerEnd.

View solution in original post

1 REPLY 1
Mr-Dang-MSFT
Power Apps
Power Apps

Hi @amydixanne,

By default, the OnSave action is set to:

SubmitForm(SharePointForm1)

This saves the record and exits the app afterwards.

 

If you choose to use Patch instead, you might need to manually do an Exit():

Patch(your_formula_here);
Exit()

And if you want the user to see a success screen, you would write a navigate formula.

Patch(your_formula_here);
Navigate(SuccessScreen,Fade)

Then you could insert a timer on the SuccessScreen that automatically Exits the app OnTimerEnd.

View solution in original post

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,315)