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

Difference Between SubmitForm and Patch

Hi

 

If you look at the various Sample Apps, they seem to be evenly split between using SubmitForm to update the datasource and Patch to update a DataSource.

 

So what is the difference between SubmitForm and Patch and under what circumstances should you use either ?

 

Just to confuse people even more, there is then the Update (and UpdateIf) command.  When should that be used over the SubmitFormn and the Patch command.

 

Thanks

 

Nigel

2 ACCEPTED SOLUTIONS

Accepted Solutions
PowerApps Staff LanceDelano
PowerApps Staff

Re: Difference Between SubmitForm and Patch

The documentation has a good discussion about Patch - generally used for more complex updates.   When you need more control.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch

 

Submit form is used to update the contents of an edit form in a straight forward way. 

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

 

Super User
Super User

Re: Difference Between SubmitForm and Patch

Hi @NigelP 

 

I did some testing/investigation on whether there were any performance differences - you can see it here: https://youtu.be/LKcuPI0dxEg 

 

Having made a few apps now, I tend to use Patch more than SubmitForm. It is more flexible and to me, it is simply clearer what is going on and gives that little bit more control.

2 REPLIES 2
PowerApps Staff LanceDelano
PowerApps Staff

Re: Difference Between SubmitForm and Patch

The documentation has a good discussion about Patch - generally used for more complex updates.   When you need more control.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch

 

Submit form is used to update the contents of an edit form in a straight forward way. 

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

 

Super User
Super User

Re: Difference Between SubmitForm and Patch

Hi @NigelP 

 

I did some testing/investigation on whether there were any performance differences - you can see it here: https://youtu.be/LKcuPI0dxEg 

 

Having made a few apps now, I tend to use Patch more than SubmitForm. It is more flexible and to me, it is simply clearer what is going on and gives that little bit more control.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

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!

Users Online
Currently online: 40 members 4,162 guests
Please welcome our newest community members: