{"id":133,"date":"2018-01-05T12:41:20","date_gmt":"2018-01-05T20:41:20","guid":{"rendered":""},"modified":"2025-06-11T08:10:20","modified_gmt":"2025-06-11T15:10:20","slug":"bulk-update-using-forall-and-patch","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/bulk-update-using-forall-and-patch\/","title":{"rendered":"How to bulk update records in PowerApps"},"content":{"rendered":"<p>A lot of you would have come across a scenario where you want to bulk update records.<\/p>\n<p>Maybe you are taking some photos and want to upload them all at once. Or you want to flip certain flags in your data and update the source. Or you have to submit a timesheet with a week\u2019s data at once.<\/p>\n<p>I\u2019ve detailed out different solutions to achieve this in the blog below.<\/p>\n<h1>Scenario<\/h1>\n<p>Assume you have a checklist of tasks to do. When you are done with a few tasks you can mark them as complete. You could extend this scenario to a Product Launch checklist, Home Inspection checklist and so on.<\/p>\n<p>I\u2019ve created a simple checklist where I can check off tasks related to my blogging or posting on social media. I\u2019ll not get into the details of building the app here. Below is the excel screenshot containing the Checklist items. My table on the excel is called as <b>ChecklistItems. <\/b>You can find the excel <a href=\"https:\/\/blogcode.blob.core.windows.net\/pablogassets\/BulkUpdate_blog\/Bulkupdate_blog.zip\">here<\/a>.<\/p>\n<p>I\u2019m using Collections to demo this. The approach works for any backend of your choice.<\/p>\n<p><a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image001\" border=\"0\" height=\"106\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"clip_image001\" width=\"285\"\/><\/a><\/p>\n<p>I\u2019ve imported excel data as static data into my PowerApps application. On the OnStart, I collect the excel <b>ChecklistItems<\/b> data into <b>ChecklistItemsSource<\/b> collection. Throughout the application we will use the <strong>ChecklistItemsSource<\/strong> as our source data.<\/p>\n<p>We have a simple 2 screen application<\/p>\n<ul>\n<li>To review the checklist items and mark them as complete.<\/li>\n<li>To create a new checklist item. The new item will be added to <strong>ChecklistItemsSource<\/strong> collection.<\/li>\n<\/ul>\n<p>\u00a0 <a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/73b1fc62-f307-49f6-939b-9d62524dd958.jpg\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image003\" border=\"0\" height=\"240\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/73b1fc62-f307-49f6-939b-9d62524dd958.jpg\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"clip_image003\" width=\"136\"\/><\/a>\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/10ecd85e-a91c-4aa4-bc9e-b32fabe3f948.jpg\"><img loading=\"lazy\" decoding=\"async\" alt=\"clip_image005\" border=\"0\" height=\"240\" src=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/10ecd85e-a91c-4aa4-bc9e-b32fabe3f948.jpg\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" title=\"clip_image005\" width=\"135\"\/><\/a><\/p>\n<ul><!--StartFragment-->\n<\/ul>\n<p>Every time a checklist item is checked, we add it into a collection <strong> CheckedItems<\/strong> using the below formula on the <b>OnCheck<\/b> event of Checkbox control. If the item is already checked and is part of the collection, it\u2019s removed. Else the checked item is added. You can toggle the status between Done and Pending, on the Oncheck and OnUncheck events as well.<\/p>\n<ul>\n<li>\n<ul>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>If(!IsBlank(LookUp(CheckedItems,Id = ThisItem.Id)),Remove(CheckedItems,ThisItem),Collect(CheckedItems,ThisItem))<\/strong><\/p>\n<p>\u00a0<\/p>\n<p>Solutions<\/p>\n<p>Below, I\u2019ve explained the different ways of bulk updating records depending on the scenario. I\u2019ve also provided details on creating multiple records at once.<\/p>\n<p>When the user clicks Done in the above scenario, we need to update <strong>ChecklistItemsSource <\/strong>with changes from <strong>CheckedItems <\/strong>collection<strong>. <\/strong><\/p>\n<p><u>Using Patch:<\/u><\/p>\n<blockquote>\n<p>If your Source and Destination have the same column names, you can use a simple Patch statement. <strong>ChecklistItemsSource<\/strong> and the <strong>CheckedItems<\/strong> collections, have the same column names. Hence you can use the below formula to update the source at once with all the changes.<\/p>\n<p><strong>Patch(ChecklistItemsSource , CheckedItems)<\/strong><\/p>\n<\/blockquote>\n<p><u>Using ForAll and Patch:<\/u><\/p>\n<blockquote>\n<p>In many scenarios, the columns in source and destination tables vary and you cannot use the Patch statement, but instead use <strong>ForAll<\/strong> with <strong>Patch<\/strong>.<\/p>\n<p>With <strong>ForAll<\/strong>, you must loop through each record using a condition. The condition is a comparison between similar columns(i.e. Id column) of the different tables. And this comparison is hard when the source table and the destination table have the same column names( E.g. ProjectId in Project and PurchaseOrder tables). Most people run into an issue where only the first record gets updated. Let\u2019s look at a few examples on how to achieve this easily.<\/p>\n<\/blockquote>\n<blockquote>\n<p><b>1. with disambiguation operator: <\/b><\/p>\n<\/blockquote>\n<blockquote>\n<p>To update the <b>Status<\/b> of CheckedItems to \u201cDone\u201d, when the source and destination table column names are the same, here is the formula<\/p>\n<p><strong>ForAll(CheckedItems,Patch(ChecklistItemsSource,LookUp(ChecklistItemsSource, Id = CheckedItems[@Id]),{Status:&#8221;Done&#8221;}))<\/strong><\/p>\n<p>For each item in the <strong>CheckedItems<\/strong> collection, we compare its Id (represented by the disambiguation operator <b>CheckedItems[@Id]<\/b>) against the Id column of <b>ChecklistItemsSource<\/b> collection and update each matched record with the Status as \u201cDone\u201d. The disambiguation operator is used when two columns belonging to different tables have the same name. If you don\u2019t use this disambiguation operator you will observe that only the first record gets updated always.<\/p>\n<p><b>2. using an additional label within the gallery<\/b><\/p>\n<p>If you don\u2019t want to use an additional collection to store the checked items, you can try the following.<\/p>\n<p>Create an additional label within the gallery template, bind it to the Id column and rename the label to IdText.<\/p>\n<p>Remove the code on the <b>Oncheck<\/b> of the checkbox control mentioned above.<\/p>\n<p>Write the following formula on the <b>OnSelect<\/b> event of the Done Button.<\/p>\n<p><strong>ForAll(Filter(ChecklistGallery.AllItems,StatusCheckbox.Value=true),Patch(ChecklistItemsSource,LookUp(ChecklistItemsSource,Id = IdText.Text),{Status:&#8221;Done&#8221;}))<\/strong><\/p>\n<p>Here you are directly applying the filter on the Gallery\u2019s items to find the checked items, and for each record in the filtered items, we find a match on the <b>ChecklistItemsSource<\/b> table by comparing the <b>Id<\/b> with value stored in <b>IdText<\/b> label. Finally, we update the status to \u201cDone\u201d.<\/p>\n<p>The Disambiguation operator cannot be used on the Gallery\u2019s items. Hence, we store a label within the gallery and use it for comparison.<\/p>\n<p><b>3. with AddColumns:<\/b><\/p>\n<p>This is an alternative to using the Disambiguation operator or a label inside gallery.<\/p>\n<p>While creating a local copy of your data source, you can use AddColumns formula to create a new column with a different label(NewId) for the Id column in your source collection. When using ForAll with patch, you compare the NewId column, against the Id column in your source data.<\/p>\n<\/blockquote>\n<h2>Bulk create records<\/h2>\n<p>We have already tackled the hard problem of bulk updating records. We do generally see a need to create new records in bulk. For example, when you are app has to click some images and you may want to upload them all at once.<\/p>\n<p>Let\u2019s see how this can be achieved with the example of Checklist items above.<\/p>\n<p>On the Checklist Create screen, each time you click Add, we store the information in <b>NewChecklistItems<\/b> collection. And on Submit, we use ForAll with patch to update the Source collection.<\/p>\n<p><strong>ForAll(NewChecklistItems,Patch(ChecklistItemsSource,Defaults(ChecklistItemsSource),{Id:Id,Category:Category,Description:Description,Status:Status}))<\/strong><\/p>\n<p>For each item in the NewChecklistItems, we are creating a new record (indicated by Defaults(ChecklistItemsSource)) in the ChecklistItemsSource collection. Id is set to the Id from the NewChecklistItems collection. Similarly, Category, Description and Status values are set.<\/p>\n<p>Summary<\/p>\n<p>In this blog, I\u2019m not writing a lot of details on building the application but just concentrating on the key formulas to bulk update records. You can find all the related files <a href=\"https:\/\/blogcode.blob.core.windows.net\/pablogassets\/BulkUpdate_blog\/Bulkupdate_blog.zip\">here<\/a>.<\/p>\n<p>Summarizing the key points to bulk update records using ForAll and Patch.<\/p>\n<ul>\n<li>Use Patch, when source and destination columns names are same.<\/li>\n<li>Disambiguation operator [@] on the comparison column to differentiate the source and local data column name.<\/li>\n<li>Store the comparison Key in a label on the gallery representing local data.<\/li>\n<li>Use the AddColumns to rename the Comparison Key column name on your local data.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A lot of you would have come across a scenario where you want to bulk update records. Maybe you are taking some images and want to upload them all at once.<\/p>\n","protected":false},"author":124,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","ms-ems-related-posts":[],"footnotes":""},"audience":[3378],"content-type":[],"job-role":[],"product":[3473],"property":[],"topic":[3421],"coauthors":[2123],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","audience-it-professional","product-power-apps","topic-application-modernization"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to bulk update records in PowerApps - Microsoft Power Platform Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to bulk update records in PowerApps - Microsoft Power Platform Blog\" \/>\n<meta property=\"og:description\" content=\"A lot of you would have come across a scenario where you want to bulk update records. Maybe you are taking some images and want to upload them all at once.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/bulk-update-using-forall-and-patch\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Power Platform Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-05T20:41:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-11T15:10:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\" \/>\n<meta name=\"author\" content=\"Vasavi Bhaviri Setty\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vasavi Bhaviri Setty\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/\"},\"author\":[{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/v-vabhav\/\",\"@type\":\"Person\",\"@name\":\"Vasavi Bhaviri Setty\"}],\"headline\":\"How to bulk update records in PowerApps\",\"datePublished\":\"2018-01-05T20:41:20+00:00\",\"dateModified\":\"2025-06-11T15:10:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/\"},\"wordCount\":1114,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\",\"keywords\":[\"Formulas\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/\",\"name\":\"How to bulk update records in PowerApps - Microsoft Power Platform Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\",\"datePublished\":\"2018-01-05T20:41:20+00:00\",\"dateModified\":\"2025-06-11T15:10:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage\",\"url\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\",\"contentUrl\":\"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to bulk update records in PowerApps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\",\"name\":\"Microsoft Power Platform Blog\",\"description\":\"Innovate with Business Apps\",\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\",\"name\":\"Microsoft Power Platform Blog\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png\",\"width\":194,\"height\":145,\"caption\":\"Microsoft Power Platform Blog\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/person\/4dd68de8e1c273532a2fb435101791d3\",\"name\":\"Vasavi Bhaviri Setty\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/0dd832e8dea09a02c2fa99d61cacc9aa03e151eeee39d3ff9c1afd82583c824a?s=96&d=mm&r=g95445db3399f40bbb3df1b46e6c613ef\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0dd832e8dea09a02c2fa99d61cacc9aa03e151eeee39d3ff9c1afd82583c824a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0dd832e8dea09a02c2fa99d61cacc9aa03e151eeee39d3ff9c1afd82583c824a?s=96&d=mm&r=g\",\"caption\":\"Vasavi Bhaviri Setty\"},\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/v-vabhav\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to bulk update records in PowerApps - Microsoft Power Platform Blog","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:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/","og_locale":"en_US","og_type":"article","og_title":"How to bulk update records in PowerApps - Microsoft Power Platform Blog","og_description":"A lot of you would have come across a scenario where you want to bulk update records. Maybe you are taking some images and want to upload them all at once.","og_url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/bulk-update-using-forall-and-patch\/","og_site_name":"Microsoft Power Platform Blog","article_published_time":"2018-01-05T20:41:20+00:00","article_modified_time":"2025-06-11T15:10:20+00:00","og_image":[{"url":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png","type":"","width":"","height":""}],"author":"Vasavi Bhaviri Setty","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vasavi Bhaviri Setty","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#article","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/"},"author":[{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/v-vabhav\/","@type":"Person","@name":"Vasavi Bhaviri Setty"}],"headline":"How to bulk update records in PowerApps","datePublished":"2018-01-05T20:41:20+00:00","dateModified":"2025-06-11T15:10:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/"},"wordCount":1114,"commentCount":0,"publisher":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage"},"thumbnailUrl":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png","keywords":["Formulas"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/","name":"How to bulk update records in PowerApps - Microsoft Power Platform Blog","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage"},"thumbnailUrl":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png","datePublished":"2018-01-05T20:41:20+00:00","dateModified":"2025-06-11T15:10:20+00:00","breadcrumb":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#primaryimage","url":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png","contentUrl":"https:\/\/pwrappscdn.azureedge.net\/mediahandler\/blog\/media\/PowerApps\/blog\/b9d72d34-6473-42d6-a873-1153f41f9d74.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2018\/01\/05\/bulk-update-using-forall-and-patch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/"},{"@type":"ListItem","position":2,"name":"How to bulk update records in PowerApps"}]},{"@type":"WebSite","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/","name":"Microsoft Power Platform Blog","description":"Innovate with Business Apps","publisher":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization","name":"Microsoft Power Platform Blog","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png","contentUrl":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png","width":194,"height":145,"caption":"Microsoft Power Platform Blog"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/person\/4dd68de8e1c273532a2fb435101791d3","name":"Vasavi Bhaviri Setty","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0dd832e8dea09a02c2fa99d61cacc9aa03e151eeee39d3ff9c1afd82583c824a?s=96&d=mm&r=g95445db3399f40bbb3df1b46e6c613ef","url":"https:\/\/secure.gravatar.com\/avatar\/0dd832e8dea09a02c2fa99d61cacc9aa03e151eeee39d3ff9c1afd82583c824a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0dd832e8dea09a02c2fa99d61cacc9aa03e151eeee39d3ff9c1afd82583c824a?s=96&d=mm&r=g","caption":"Vasavi Bhaviri Setty"},"url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/v-vabhav\/"}]}},"bloginabox_animated_featured_image":null,"bloginabox_display_generated_audio":false,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Power Platform Blog","distributor_original_site_url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/users\/124"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":1,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":131134,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions\/131134"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"audience","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/audience?post=133"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/content-type?post=133"},{"taxonomy":"job-role","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/job-role?post=133"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/product?post=133"},{"taxonomy":"property","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/property?post=133"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/topic?post=133"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/coauthors?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}