{"id":36226,"date":"2023-10-16T15:20:41","date_gmt":"2023-10-16T09:50:41","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=36226"},"modified":"2023-10-16T15:49:16","modified_gmt":"2023-10-16T10:19:16","slug":"pro-tip-how-to-use-updateif-in-canvas-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/","title":{"rendered":"Pro Tip &#8211; How to use UpdateIf() in Canvas App"},"content":{"rendered":"<p>Let us explore the use and functionalities of the <strong>UpdateIf()<\/strong> Function using some simple examples.<\/p>\n<h2><strong>Requirements<\/strong><\/h2>\n<p>Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium, etc. We need to set <strong>Premium<\/strong> as the value of the preference field for the records that have annual revenue of more than $5,000,000. The value for preference should be set for all records present in the table at the click of a button.<\/p>\n<p>To achieve the above customer requirement, we have created a Canvas App and tried to implement it using the UpdateIf() Function.<\/p>\n<h2><strong>UpdateIf Function<\/strong><\/h2>\n<p>To change one or more values in one or more records that match one or more conditions, use the UpdateIf function. Any formula that returns a true or false result can be used as the condition, and it can explicitly refer to specific columns in the data source. Each record&#8217;s condition is evaluated by the function which updates any records for which the result is true. UpdateIf, return a table using the changed data source.<\/p>\n<h2><strong>Syntax<\/strong><\/h2>\n<p><strong>UpdateIf<\/strong>( DataSource, Condition1, ChangeRecord1 [, Condition2, ChangeRecord2, &#8230;.])<\/p>\n<ul>\n<li><strong>DataSource <\/strong>\u2013 Required. The source of the record or records to be modified is required.<\/li>\n<li><strong>Condition(s)<\/strong> \u2013 Required. A formula that, when applied to the record or records you want to change, returns true. The formula can use the Data Source\u2019s column names.<\/li>\n<li><strong>ChangeRecord(s)<\/strong> &#8211; Required. A change record of new property values to be applied to DataSource records that meet the condition is created for each corresponding condition. The property values of the existing record can be used in the property formulas if you provide the record inline using curly braces.<\/li>\n<\/ul>\n<p>To achieve this requirement, we have added one button in the canvas app and entered the following code in its OnSelect property:<\/p>\n<p><strong>UpdateIf(Accounts, &#8216;Annual Revenue&#8217; &gt;= 5000000, {Preference:&#8217;Preference(Accounts)&#8217;.Premium})<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36227\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg\" alt=\"Canvas App\" width=\"1907\" height=\"889\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg 1907w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App-300x140.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App-1024x477.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App-768x358.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App-1536x716.jpeg 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App-660x308.jpeg 660w\" sizes=\"(max-width: 1907px) 100vw, 1907px\" \/><\/p>\n<p>After saving the above changes we must click the update button for the above-mentioned formula to execute, then the preference field will be set as Premium for all the records present in the data table that have an Annual Revenue of more than $5,000,000.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36228\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/2Canvas-App.jpeg\" alt=\"Canvas App\" width=\"1507\" height=\"693\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/2Canvas-App.jpeg 1507w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/2Canvas-App-300x138.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/2Canvas-App-1024x471.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/2Canvas-App-768x353.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/2Canvas-App-660x304.jpeg 660w\" sizes=\"(max-width: 1507px) 100vw, 1507px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>The <strong>UpdateIf()<\/strong> function provides new options for the PowerApps formula in Dynamics 365. Users can easily update the record\u2019s data based on the desired conditions by executing a simple powerFX formula instead of writing a script or doing some lengthy workaround to achieve the requirement. This opens new options for the canvas apps since it relies mostly on the powerFX formula.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/services\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-36229\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/Canvas-App.gif\" alt=\"Canvas App\" width=\"880\" height=\"220\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/\">Read More: Pro Tip &#8211; How to use UpdateIf() in Canvas App &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1954],"tags":[1988],"class_list":["post-36226","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","tag-canvas-apps"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1907\" \/>\n\t\t<meta property=\"og:image:height\" content=\"889\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-10-16T09:50:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-10-16T10:19:16+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#blogposting\",\"name\":\"Pro Tip \\u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Pro Tip &#8211; How to use UpdateIf() in Canvas App\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sarika\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/1Canvas-App.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#articleImage\",\"width\":1907,\"height\":889,\"caption\":\"Canvas App\"},\"datePublished\":\"2023-10-16T15:20:41+05:30\",\"dateModified\":\"2023-10-16T15:49:16+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#webpage\"},\"articleSection\":\"Canvas Apps, Canvas Apps\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/canvas-apps\\\/#listItem\",\"name\":\"Canvas Apps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/canvas-apps\\\/#listItem\",\"position\":2,\"name\":\"Canvas Apps\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/canvas-apps\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#listItem\",\"name\":\"Pro Tip &#8211; How to use UpdateIf() in Canvas App\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#listItem\",\"position\":3,\"name\":\"Pro Tip &#8211; How to use UpdateIf() in Canvas App\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/canvas-apps\\\/#listItem\",\"name\":\"Canvas Apps\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sarika\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sarika\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f7e3157d3c9d28231b0a67ff18cc6445c87e889473ae03080f7026c5482ce860?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/\",\"name\":\"Pro Tip \\u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \\u2018Preference\\u2019 where we have different options i.e. Basic, Premium,\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2023\\\/10\\\/pro-tip-how-to-use-updateif-in-canvas-app\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sarika\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sarika\\\/#author\"},\"datePublished\":\"2023-10-16T15:20:41+05:30\",\"dateModified\":\"2023-10-16T15:49:16+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,","canonical_url":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#blogposting","name":"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Pro Tip &#8211; How to use UpdateIf() in Canvas App","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sarika\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#articleImage","width":1907,"height":889,"caption":"Canvas App"},"datePublished":"2023-10-16T15:20:41+05:30","dateModified":"2023-10-16T15:49:16+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#webpage"},"articleSection":"Canvas Apps, Canvas Apps"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/canvas-apps\/#listItem","name":"Canvas Apps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/canvas-apps\/#listItem","position":2,"name":"Canvas Apps","item":"https:\/\/www.inogic.com\/blog\/category\/canvas-apps\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#listItem","name":"Pro Tip &#8211; How to use UpdateIf() in Canvas App"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#listItem","position":3,"name":"Pro Tip &#8211; How to use UpdateIf() in Canvas App","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/canvas-apps\/#listItem","name":"Canvas Apps"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/sarika\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/sarika\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f7e3157d3c9d28231b0a67ff18cc6445c87e889473ae03080f7026c5482ce860?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/","name":"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sarika\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sarika\/#author"},"datePublished":"2023-10-16T15:20:41+05:30","dateModified":"2023-10-16T15:49:16+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,","og:url":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg","og:image:width":1907,"og:image:height":889,"article:published_time":"2023-10-16T09:50:41+00:00","article:modified_time":"2023-10-16T10:19:16+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Pro Tip \u2013 How to use UpdateIf() in Canvas App - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Let us explore the use and functionalities of the UpdateIf() Function using some simple examples. Requirements Suppose, we have created a data table in our canvas app, where we have some records. We have created an option set field on the Account form with the name \u2018Preference\u2019 where we have different options i.e. Basic, Premium,","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/1Canvas-App.jpeg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"36226","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-10-16 09:45:55","updated":"2025-07-04 10:23:03","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/canvas-apps\/\" title=\"Canvas Apps\">Canvas Apps<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPro Tip \u2013 How to use UpdateIf() in Canvas App\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Canvas Apps","link":"https:\/\/www.inogic.com\/blog\/category\/canvas-apps\/"},{"label":"Pro Tip &#8211; How to use UpdateIf() in Canvas App","link":"https:\/\/www.inogic.com\/blog\/2023\/10\/pro-tip-how-to-use-updateif-in-canvas-app\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/36226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=36226"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/36226\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=36226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=36226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=36226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}