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

Submitform(form) vs Patch

Hello all,

I have a question regarding submitForm and Patch. Is there any substancial difference between the two (performance, for example)? If my app has data in an Excel sheet, about 500 lines or so, in which from the 10 columns (more or less), only 4 or 5 are edited by users, would it be better to use one over the other?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Submitform(form) vs Patch

@FelipeCaru 

I believe the answer is - indirectly.

In general the submit form function will do very similar actions as your Patch.  The biggest difference is, a Form has a lot of overhead.  It is built to handle many different variations of data and field types.  Due to this, there is more processing that has to occur for all of the conditions to happen.  For the most part, it is not noticeable, but technically, there is a big difference between a function that handles many variations as opposed to a Patch that is very specific.

Your situation may vary.  Choosing one over the other is a choice of function in many cases as opposed to performance.  Since the Form handles so many aspects for you - if you need those aspects to be handled rather than designing formulas for them, then use the Form.  If you have very specific data and it's not a hassle to do, then use a Patch.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
2 REPLIES 2
Super User
Super User

Re: Submitform(form) vs Patch

@FelipeCaru 

I believe the answer is - indirectly.

In general the submit form function will do very similar actions as your Patch.  The biggest difference is, a Form has a lot of overhead.  It is built to handle many different variations of data and field types.  Due to this, there is more processing that has to occur for all of the conditions to happen.  For the most part, it is not noticeable, but technically, there is a big difference between a function that handles many variations as opposed to a Patch that is very specific.

Your situation may vary.  Choosing one over the other is a choice of function in many cases as opposed to performance.  Since the Form handles so many aspects for you - if you need those aspects to be handled rather than designing formulas for them, then use the Form.  If you have very specific data and it's not a hassle to do, then use a Patch.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
FelipeCaru
Level 8

Re: Submitform(form) vs Patch

@RandyHayes 

Thank you very much for the answer. I think I'll keep to form since it is what works for me and since I have different fields and whatnot (:

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 189 members 4,215 guests
Please welcome our newest community members: