cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
crliu
New Member

How to roll back after multiple forms fail to submit

I created a screen in Power Apps, there are two forms that need to be submitted at the same time. If one of them fails, what should I do if I want to roll back the submitted updates

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

@crliu ,

There is not quite a concurrent saving, but here is my simplified solution. 

OnSelect property of the SAVE button ( most probably a button control) :

SubmitForm(Form1)

OnSuccess property of the Form1:

SubmitForm(Form2)

OnFailure property of the Form2:

Remove(DataSourceForm1,Form1.LastSubmit)

 Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

@crliu ,

There is not quite a concurrent saving, but here is my simplified solution. 

OnSelect property of the SAVE button ( most probably a button control) :

SubmitForm(Form1)

OnSuccess property of the Form1:

SubmitForm(Form2)

OnFailure property of the Form2:

Remove(DataSourceForm1,Form1.LastSubmit)

 Hope it helps !

Thanks for your help!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,833)