cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanielaH
Level 8

Confirmation data was saved in SP list

Hi All,

 

I am looking for a way to display a 'Successfully submitted' message that appears only if the data has indeed been saved to the SP list. Is there a way for PowerApps to receive a confirmation from the SharePoint list that the data was saved, and to issue a warning if it hasn't?

 

We want users to respond to all fields, but as shown in this post the functionality making PowerApps fields 'required/mandatory' does not enforce this properly. If we make all SharePoint list items mandatory, and the user misses to fill out a field in PowerApps, their submission (list entry) will simply not save in SharePoint.

 

Therefore we are trying to find a way to advise the user if their submission worked or not. Any ideas?

 

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Confirmation data was saved in SP list

Hi DanielaH,

 

May you consider to use OnSuccess property of EditForm control.
https://powerapps.microsoft.com/en-us/tutorials/control-form-detail/

3.PNG

 

Before using the OnSuccess property, please set all the columns in the SharePoint list as “Required”(according to your needs).


Then create an app based on the list. On the EditForm, set the EditForm’s OnSuccess property as: UpdateContext({message:"successfully"}), OnFailure property as: UpdateContext({message:"wrong"}).


Then add a Label control, set its Text property as message.


When the data you filled on the Form are submitted successfully, an message “successfully” will be shown on the label, otherwise, if you missed some fields, the message “wrong” will be shown on the label.


Please have a try with it. Hope it could be a reference for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DavJaq
Level 8

Re: Confirmation data was saved in SP list

How can I display the kind of error and/or the specific missing required fields in the UpdateContext({message: }) ?

johnom
Level: Powered On

Re: Confirmation data was saved in SP list

Hi Mabel

Could you advise how this confirmation can be achieved when submitting a collection to sharepoint list

regards

John

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,810)