{"id":100647,"date":"2023-07-02T22:15:05","date_gmt":"2023-07-02T22:15:05","guid":{"rendered":"https:\/\/samtech365.com\/?p=100647"},"modified":"2025-05-22T00:26:30","modified_gmt":"2025-05-22T00:26:30","slug":"powerapps-patch-vs-submitform","status":"publish","type":"post","link":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/","title":{"rendered":"PowerApps Patch vs SubmitForm"},"content":{"rendered":"<p>A recurring question, should I use Patch or SubmitForm function to save my data from <a href=\"https:\/\/samtech365.com\/track-your-modern-sharepoint-usage-with-google-analytics-sharepoint-pnp-viva-connections-spfx-js-sig-call\/\">PowerApps<\/a> to SharePoint (or any data source).<\/p>\n<p>Well, both functions are useful and can be used to send your data to the backend.<\/p>\n<p>However, there are some differences between them, and more importantly, preferences to use one instead of the other.<\/p>\n<h1>Patch<\/h1>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Patch( Customers, Defaults( Customers ), { Name: \"Contoso\" } )<\/pre>\n<p>&nbsp;<\/p>\n<p>Patch is a great function which allows you full control on the data you are submitting.<\/p>\n<ul>\n<li>You can use formatted values (lower, upper case, custom format),<\/li>\n<li>You can use function in addition to the values, e.g. Concat(&#8220;Item-&#8221; &amp; txtTitle.Text).<\/li>\n<\/ul>\n<p><strong>Patch<\/strong>( <em>DataSource<\/em>, <em>BaseRecord<\/em>, <em>ChangeRecord1<\/em> [, <em>ChangeRecord2<\/em>, \u2026 ]) <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/power-fx\/reference\/function-patch#syntax\">Ref<\/a><\/p>\n<ul>\n<li><em>DataSource<\/em> \u2013 Required. The data source that contains the record that you want to modify or will contain the record that you want to create.<\/li>\n<li><em>BaseRecord<\/em> \u2013 Required. The record to modify or create. If the record came from a data source, the record is found and modified. If the result of <strong>Defaults<\/strong> is used, a record is created.<\/li>\n<li><em>ChangeRecord(s)<\/em> \u2013 Required. One or more records that contain properties to modify in the <em>BaseRecord<\/em>. Change records are processed in order from the beginning of the argument list to the end, with later property values overriding earlier ones.<\/li>\n<\/ul>\n<p>The most important aspect of Patch is flexibility, it allows you to submit part of the record instead of submitting the whole record to the back end, plus the flexibility of setting custom values part of the call to the Patch Function.<\/p>\n<h1>SubmitForm<\/h1>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">SubmitForm( FormName )<\/pre>\n<p>This is a quick way of submitting a form to the back end,<\/p>\n<p>If you don&#8217;t want to spend a lot of time in creating the form and aligning the different labels and text field, you can just use the form control, and make a call to SubmitForm, passing the actual form and that is it, your data is saved to the back end without too much hassle.<\/p>\n<h1>Verdict<\/h1>\n<p>I prefer to use <strong>Patch<\/strong> instead of <strong>SubmitForm<\/strong> for the flexibility given and the control of my data before submitting it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A recurring question, should I use Patch or SubmitForm function to save my data from&#8230;<\/p>\n","protected":false},"author":1,"featured_media":100648,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[56],"tags":[178],"class_list":["post-100647","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powerapps","tag-powerapps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerApps Patch vs SubmitForm<\/title>\n<meta name=\"description\" content=\"Compare PowerApps Patch vs SubmitForm: Which is better for your app? Explore their features and benefits here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerApps Patch vs SubmitForm\" \/>\n<meta property=\"og:description\" content=\"A recurring question, should I use Patch or SubmitForm function to save my data from PowerApps to SharePoint (or any data source).Well, both functions are useful and can be used to send your data to the backend.However, there are some differences between them, and more importantly, preferences to use one instead of the other.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/\" \/>\n<meta property=\"og:site_name\" content=\"SamTech 365 - Samir Daoudi Technical Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-02T22:15:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-22T00:26:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Samir Daoudi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"PowerApps Patch vs SubmitForm\" \/>\n<meta name=\"twitter:description\" content=\"A recurring question, should I use Patch or SubmitForm function to save my data from PowerApps to SharePoint (or any data source).Well, both functions are useful and can be used to send your data to the backend.However, there are some differences between them, and more importantly, preferences to use one instead of the other.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1\" \/>\n<meta name=\"twitter:creator\" content=\"@daoudi_samir\" \/>\n<meta name=\"twitter:site\" content=\"@daoudi_samir\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Samir Daoudi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/\"},\"author\":{\"name\":\"Samir Daoudi\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\"},\"headline\":\"PowerApps Patch vs SubmitForm\",\"datePublished\":\"2023-07-02T22:15:05+00:00\",\"dateModified\":\"2025-05-22T00:26:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/\"},\"wordCount\":338,\"publisher\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\"},\"image\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1\",\"keywords\":[\"Power Apps\"],\"articleSection\":[\"Power Apps\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/\",\"url\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/\",\"name\":\"PowerApps Patch vs SubmitForm\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1\",\"datePublished\":\"2023-07-02T22:15:05+00:00\",\"dateModified\":\"2025-05-22T00:26:30+00:00\",\"description\":\"Compare PowerApps Patch vs SubmitForm: Which is better for your app? Explore their features and benefits here.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1\",\"width\":1366,\"height\":768,\"caption\":\"SubmitForm\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/powerapps-patch-vs-submitform\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/samtech365.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerApps Patch vs SubmitForm\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/samtech365.com\\\/#website\",\"url\":\"https:\\\/\\\/samtech365.com\\\/\",\"name\":\"SamTech 365 - Samir Daoudi Technical Blog\",\"description\":\"PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, C#, .Net, SQL, Azure News, Tips ....etc\",\"publisher\":{\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/samtech365.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/samtech365.com\\\/#\\\/schema\\\/person\\\/92fc47c88485daac9dc759ad3f9e18e6\",\"name\":\"Samir Daoudi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\",\"width\":192,\"height\":96,\"caption\":\"Samir Daoudi\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/samtech365.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1\"},\"url\":\"https:\\\/\\\/samtech365.com\\\/author\\\/daoudi-samirgmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerApps Patch vs SubmitForm","description":"Compare PowerApps Patch vs SubmitForm: Which is better for your app? Explore their features and benefits here.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/","og_locale":"en_US","og_type":"article","og_title":"PowerApps Patch vs SubmitForm","og_description":"A recurring question, should I use Patch or SubmitForm function to save my data from PowerApps to SharePoint (or any data source).Well, both functions are useful and can be used to send your data to the backend.However, there are some differences between them, and more importantly, preferences to use one instead of the other.","og_url":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/","og_site_name":"SamTech 365 - Samir Daoudi Technical Blog","article_published_time":"2023-07-02T22:15:05+00:00","article_modified_time":"2025-05-22T00:26:30+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","type":"image\/png"}],"author":"Samir Daoudi","twitter_card":"summary_large_image","twitter_title":"PowerApps Patch vs SubmitForm","twitter_description":"A recurring question, should I use Patch or SubmitForm function to save my data from PowerApps to SharePoint (or any data source).Well, both functions are useful and can be used to send your data to the backend.However, there are some differences between them, and more importantly, preferences to use one instead of the other.","twitter_image":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","twitter_creator":"@daoudi_samir","twitter_site":"@daoudi_samir","twitter_misc":{"Written by":"Samir Daoudi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#article","isPartOf":{"@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/"},"author":{"name":"Samir Daoudi","@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6"},"headline":"PowerApps Patch vs SubmitForm","datePublished":"2023-07-02T22:15:05+00:00","dateModified":"2025-05-22T00:26:30+00:00","mainEntityOfPage":{"@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/"},"wordCount":338,"publisher":{"@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6"},"image":{"@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","keywords":["Power Apps"],"articleSection":["Power Apps"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/","url":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/","name":"PowerApps Patch vs SubmitForm","isPartOf":{"@id":"https:\/\/samtech365.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#primaryimage"},"image":{"@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","datePublished":"2023-07-02T22:15:05+00:00","dateModified":"2025-05-22T00:26:30+00:00","description":"Compare PowerApps Patch vs SubmitForm: Which is better for your app? Explore their features and benefits here.","breadcrumb":{"@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#primaryimage","url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","contentUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","width":1366,"height":768,"caption":"SubmitForm"},{"@type":"BreadcrumbList","@id":"https:\/\/samtech365.com\/powerapps-patch-vs-submitform\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/samtech365.com\/"},{"@type":"ListItem","position":2,"name":"PowerApps Patch vs SubmitForm"}]},{"@type":"WebSite","@id":"https:\/\/samtech365.com\/#website","url":"https:\/\/samtech365.com\/","name":"SamTech 365 - Samir Daoudi Technical Blog","description":"PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, C#, .Net, SQL, Azure News, Tips ....etc","publisher":{"@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/samtech365.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/samtech365.com\/#\/schema\/person\/92fc47c88485daac9dc759ad3f9e18e6","name":"Samir Daoudi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1","url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1","contentUrl":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1","width":192,"height":96,"caption":"Samir Daoudi"},"logo":{"@id":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2025\/05\/samtech365_v3-e1755126237898.png?fit=192%2C96&ssl=1"},"url":"https:\/\/samtech365.com\/author\/daoudi-samirgmail-com\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/samtech365.com\/wp-content\/uploads\/2023\/07\/PowerApps-Patch-vs-SubmitForm.png?fit=1366%2C768&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/posts\/100647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/comments?post=100647"}],"version-history":[{"count":0,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/posts\/100647\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/media\/100648"}],"wp:attachment":[{"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/media?parent=100647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/categories?post=100647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samtech365.com\/wp-json\/wp\/v2\/tags?post=100647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}