cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amydixanne
Level: Powered On

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
PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

Re: Help - Savings Powerapps to Sharepoint

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.

1 REPLY 1
PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

Re: Help - Savings Powerapps to Sharepoint

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.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 39 members 4,161 guests
Please welcome our newest community members: