{"id":13836,"date":"2018-12-31T07:27:19","date_gmt":"2018-12-31T07:27:19","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=13836"},"modified":"2022-09-02T16:21:17","modified_gmt":"2022-09-02T10:51:17","slug":"notify-functions-in-canvas-power-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2018\/12\/notify-functions-in-canvas-power-app\/","title":{"rendered":"Notify functions in Canvas Power App"},"content":{"rendered":"<p><strong>Introduction: <\/strong><\/p>\n<p>Power App helps to customize the app in easiest way just dragging and dropping controls. In today\u2019s blog we will explore more on <strong>Notify<\/strong> functions which works exactly like JavaScript Alerts and Notification. So when user wants to implements alerts and notification in app just like Dynamics365, we can use <strong>Notify<\/strong> function. This functions was previously named as ShowError function and could only display error messages.<\/p>\n<p>Following are different notification type in Power App:<\/p>\n<p><strong>1<\/strong>. <strong>Success:<\/strong> Let\u2019s consider example, where user wants to show success notification when record is submitted successfully.<\/p>\n<ul>\n<li>On Save button in below screen write formula on OnSelect property as:<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">Notify (&#8220;Contact record submitted sucessfully.&#8221;,NotificationType.Success)<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13837\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/1Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"1037\" height=\"452\" \/><\/p>\n<ul>\n<li>Now run the app and save the contact record and you will see the success notification as shown below:<\/li>\n<\/ul>\n<p style=\"padding-left: 120px;\"><img decoding=\"async\" class=\"aligncenter wp-image-13838\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/2Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"392\" height=\"639\" \/><\/p>\n<ul>\n<li>The NotificationType.Success parameter displays the message as success in the power App.<\/li>\n<\/ul>\n<p><strong>2<\/strong>. <strong>Warning:<\/strong> Let\u2019s say we want to implement a validation into mobile number field of contact entity and we want to make sure user should not enter text value in mobile field.<\/p>\n<ul>\n<li>On Save button in below screen write formula on OnSelect property as:<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">If (!IsNumeric(DataCardValue28.Text),Notify(&#8220;Please enter correct mobile number&#8221;,NotificationType.Error))<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13839\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/3Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"1335\" height=\"446\" \/><\/p>\n<ul>\n<li>Now run the app and save the contact record and you will see the error notification if Mobile Phone value is in string as shown below:<\/li>\n<li>The NotificationType. Error in parameter displays the message as error in the power App.<\/li>\n<\/ul>\n<p style=\"padding-left: 120px;\"><img decoding=\"async\" class=\"aligncenter wp-image-13840\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/4Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"390\" height=\"649\" \/><\/p>\n<p><strong>3<\/strong>. <strong>Notification:<\/strong> Now let\u2019s show notification message when user enters postal code less than 6 digits.<\/p>\n<ul>\n<li>On Save button in below screen write formula on OnSelect property as:<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">If(Len(DataCardValue29.Text)&lt;6,Notify(&#8220;Postal Code maximum length should be 6 &#8220;,NotificationType.Warning))<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13841\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/5Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"1357\" height=\"473\" \/><\/p>\n<ul>\n<li>Now run the app and save the contact record and you will see the warning notification if Postal code is less than 6 digit value as shown below:<\/li>\n<\/ul>\n<p style=\"padding-left: 120px;\"><img decoding=\"async\" class=\"aligncenter wp-image-13842\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/6Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"426\" height=\"716\" \/><\/p>\n<ul>\n<li>The NotificationType.Warning parameter displays the message as warning in the power App.<\/li>\n<\/ul>\n<p><strong>4<\/strong>. <strong>Information<\/strong>: let&#8217;s add a two option set field as \u201cIs Document Submitted?\u201d in power app and show information message if value is No.<\/p>\n<ul>\n<li>On Save button in below screen write formula on OnSelect property as:<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">If(DataCardValue40.Value=true,Notify(&#8220;Please submit documents before 31st December 2018.&#8221;,NotificationType.Information))<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13844\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/7Notify-functions-in-Canvas-Power-App.png\" alt=\"Notify functions in Canvas Power App\" width=\"1262\" height=\"458\" \/><\/p>\n<ul>\n<li>Now run the app and save the contact record and you will see the information notification as shown below:<\/li>\n<\/ul>\n<p style=\"padding-left: 150px;\"><img decoding=\"async\" class=\"aligncenter wp-image-13845\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/8Notify-functions-in-Canvas-Power-App-1.png\" alt=\"Notify functions in Canvas Power App\" width=\"447\" height=\"743\" \/><\/p>\n<ul>\n<li>The NotificationType.Information parameter displays the message as information in the power App.<\/li>\n<\/ul>\n<p><strong>Conclusion: <\/strong><\/p>\n<p>By using notify function we can simply show alerts and notification in our application.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Generate Your Own New Leads Within Microsoft Dynamics 365 CRM<\/div><\/div><\/h2>\n<p><em>Contact us for a <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">demo<\/a> to know more about how <a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> can help you to generate new leads from within Microsoft Dynamics 365 CRM.<\/em><\/p>\n<p><em><a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> is a 5-star rated, preferred business app on the <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a> that is Certified for Microsoft Dynamics 365 (CfMD) and comes with powerful features like Appointment Planning, Sales Routing, Territory Management, Heat Maps, Geo-analytical Dashboards and more that empower organizations to add more value to their CRM data, improve sales &amp; service processes, and achieve high ROI.<\/em><\/p>\n<p><em>Get your <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">free trial<\/a> from our Website or <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a>!<\/em><\/p>\n<p><em>&#8216;If data is the new oil, location intelligence is ??\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Power App helps to customize the app in easiest way just dragging and dropping controls. In today\u2019s blog we will explore more on Notify functions which works exactly like JavaScript Alerts and Notification. So when user wants to implements alerts and notification in app just like Dynamics365, we can use Notify function. This functions\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2018\/12\/notify-functions-in-canvas-power-app\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":13846,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[38],"tags":[247],"class_list":["post-13836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-powerapps","tag-canvas-power-app"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13836","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=13836"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13836\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/13846"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=13836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=13836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=13836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}