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

 

View solution in original post

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.

View solution in original post

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

 

View solution in original post

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.

View solution in original post

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
Users Online
Currently online: 313 members 5,049 guests
Please welcome our newest community members: