{"id":26810,"date":"2021-02-17T09:47:39","date_gmt":"2021-02-17T09:47:39","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=26810"},"modified":"2021-02-18T06:19:08","modified_gmt":"2021-02-18T06:19:08","slug":"push-notifications-for-dynamics-365-apps-and-canvas-apps-power-apps","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/02\/push-notifications-for-dynamics-365-apps-and-canvas-apps-power-apps\/","title":{"rendered":"Push Notifications for Dynamics 365 Apps and Canvas Apps Power Apps"},"content":{"rendered":"<p style=\"text-align: justify;\">Gone are the days when notifications were received through emails, given that it is now a mobile first age, push notifications seem to be quickest mode to transmit information for immediate attention.<\/p>\n<p>Using Power Automate, we already had the Notifications connector, that allowed for sending a mobile notification.<\/p>\n<p style=\"text-align: justify;\">Then, Microsoft had brought about a Power Apps Notifications connector that would allow you to send push notifications. This required some amount of tech\/manual effort in terms of determining the APPID of the Canvas APP in which you would like the notification to be displayed.<\/p>\n<p style=\"text-align: justify;\">Microsoft has recently come out with v2 version of the Power Apps Notification connector. The much-improved version has not only simplified the selection of the app but also now you can get a step further and allow the record\/view to be displayed when the user clicks on the notification.<\/p>\n<p>Let us have a look at all the notification options available through Power Automate Flow in this article.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26827\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_1.1.png\" alt=\"\" width=\"3290\" height=\"1700\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_1.1.png 3290w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_1.1-300x155.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_1.1-768x397.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_1.1-1024x529.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_1.1-660x341.png 660w\" sizes=\"(max-width: 3290px) 100vw, 3290px\" \/><\/p>\n<p>In the above example, we are sending a notification to the owner of the record every time a contact is created or updated.<\/p>\n<p><strong><u>Power Apps Notification V2 \u2013 Model Driven App<\/u><\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26828\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_2-1.png\" alt=\"\" width=\"1092\" height=\"846\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_2-1.png 1092w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_2-1-300x232.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_2-1-768x595.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_2-1-1024x793.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_2-1-660x511.png 660w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p style=\"text-align: justify;\">Choose the mobile app that you would like the notification to open in. You could choose either the Power Apps Mobile App or Field Service Mobile App.<\/p>\n<p>You could have multiple apps and the next step is to choose the App<\/p>\n<p style=\"text-align: justify;\">The users to which the notification needs to be sent. You need to provide the email address of the users or the AAD Object ID. In this case, since I can easily read the email address of the user from the system user table, I provide the primary email id.<\/p>\n<p>Message includes the message that needs to be sent.<\/p>\n<p>If you would like the user to be navigated to the specified app when they click on the notification choose Yes for Open app setting.<\/p>\n<p style=\"text-align: justify;\">Entity\/Form and Record ID \u2013 refer to the record or the view that you want the user to be automatically navigated to when they click the push notification on their mobile device. You can also choose the Form that you want displayed.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26829\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_3.png\" alt=\"\" width=\"1170\" height=\"465\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_3.png 1170w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_3-300x119.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_3-768x305.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_3-1024x407.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_3-660x262.png 660w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><\/p>\n<p style=\"text-align: justify;\">When the user clicks on the notification, they will automatically be navigated to the Customer Service Hub App and the contact form for Greg will be displayed to the user.<\/p>\n<p><strong><u>Power Apps Notification V2 \u2013 Canvas APP<\/u><\/strong><\/p>\n<p>In this example, we will have the push notification open up the canvas app with the details of the specified record for which the notification was generated.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26830\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_4-1.png\" alt=\"\" width=\"1092\" height=\"784\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_4-1.png 1092w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_4-1-300x215.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_4-1-768x551.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_4-1-1024x735.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_4-1-660x474.png 660w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p>Since Canvas Apps are also viewed through the Power Apps mobile app, we continue to choose the Power Apps mobile app.<\/p>\n<p>In the App, select the Canvas App that we would like to point the notification to.<\/p>\n<p>Email address of the owner of the record is provided. Alternatively, provide the AAD ID of the user.<\/p>\n<p>Along with the message, this time we pass the parameter to the Canvas App. The parameter should be provided in JSON format. We pass the contact id.<\/p>\n<p>The Canvas app has been designed to look for any parameters being passed to the app in App OnStart event.<\/p>\n<blockquote><p>Notify(&#8220;AppStart&#8221;);<\/p>\n<p>Set(<\/p>\n<p>SelContact,<\/p>\n<p>Param(&#8220;id&#8221;)<\/p>\n<p>);<\/p>\n<p>If (<\/p>\n<p>!IsBlank(SelContact),<\/p>\n<p>Set(<\/p>\n<p>DispContact,<\/p>\n<p>LookUp(<\/p>\n<p>Contacts,<\/p>\n<p>Contact = GUID(SelContact)<\/p>\n<p>)<\/p>\n<p>);<\/p>\n<p>Navigate(<\/p>\n<p>DetailScreen1,<\/p>\n<p>ScreenTransition.Fade<\/p>\n<p>),<\/p>\n<p>Navigate(<\/p>\n<p>BrowseScreen1,<\/p>\n<p>ScreenTransition.None<\/p>\n<p>)<\/p>\n<p>)<\/p><\/blockquote>\n<p>Based on value received in the parameter, it either navigates to the browse screen if no parameter received or directly to the details screen if the contactId was passed.<\/p>\n<p>This flow will send me a similar notification.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26831\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_5.png\" alt=\"\" width=\"1170\" height=\"282\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_5.png 1170w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_5-300x72.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_5-768x185.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_5-1024x247.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_5-660x159.png 660w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><\/p>\n<p>And this time when I click on the notification on the mobile device, it will take me to this record on the Canvas App.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26832\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_6.png\" alt=\"\" width=\"1170\" height=\"2532\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_6.png 1170w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_6-139x300.png 139w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_6-768x1662.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_6-473x1024.png 473w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_6-660x1428.png 660w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><\/p>\n<p><strong><u>Notification Connector<\/u><\/strong><\/p>\n<p style=\"text-align: justify;\">The Notifications connector that has been around since the very beginning can be used to provide notification. This requires the Power Automate mobile app to be installed on the device to receive the notifications.<\/p>\n<p style=\"text-align: justify;\">This will allow you to send simple notifications with the ability to provide a URL to navigate to. This is a generic connector that could be used to provide notifications and the ability to navigate to a URL outside of the Power Apps app.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26833\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_7.png\" alt=\"\" width=\"1092\" height=\"346\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_7.png 1092w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_7-300x95.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_7-768x243.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_7-1024x324.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_7-660x209.png 660w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p>You will receive the following notification on your mobile device:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26834\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_8.png\" alt=\"\" width=\"1170\" height=\"275\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_8.png 1170w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_8-300x71.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_8-768x181.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_8-1024x241.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_8-660x155.png 660w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><\/p>\n<p>A few points to note when working with these connectors:<\/p>\n<ol>\n<li>To receive the notification, you should have the Power Apps, Field Service App and the Flow App installed depending on the app you have chosen to send the notification through. If you have used the notification connector but have not logged-in to the Power Automate mobile app on your device, you will not receive the notification.<\/li>\n<li>If you find yourself not receiving the push notification even though you have the app installed and updated to the most recent one available on the app store, check if you have notifications enabled for the app in the setting area. I had mine disabled and thought this feature doesn\u2019t work until I found out that notification for the app were disabled.<\/li>\n<\/ol>\n<p>For an iPhone that would be <strong>Settings &#8211;&gt; Notifications &#8211;&gt; Power Apps.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26835\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_9.png\" alt=\"\" width=\"1170\" height=\"1235\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_9.png 1170w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_9-284x300.png 284w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_9-768x811.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_9-970x1024.png 970w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/Push_9-660x697.png 660w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><\/p>\n<p>Go ahead choose one of these options for sending out push notifications to your users.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/add-manage-schedule-notifications-alerts-4-dynamics-365-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-26823\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/A4D-1.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/A4D-1.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/A4D-1-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/A4D-1-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/02\/A4D-1-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gone are the days when notifications were received through emails, given that it is now a mobile first age, push notifications seem to be quickest mode to transmit information for immediate attention. Using Power Automate, we already had the Notifications connector, that allowed for sending a mobile notification. Then, Microsoft had brought about a Power\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/02\/push-notifications-for-dynamics-365-apps-and-canvas-apps-power-apps\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"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":[1954,16,19],"tags":[2098,545,1337],"class_list":["post-26810","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","category-dynamics-365","category-dynamics-crm","tag-dynamics-365-apps","tag-dynamics-365-crm","tag-power-apps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/26810","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=26810"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/26810\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=26810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=26810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=26810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}