{"id":32328,"date":"2022-08-02T17:18:35","date_gmt":"2022-08-02T11:48:35","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=32328"},"modified":"2022-08-02T17:18:35","modified_gmt":"2022-08-02T11:48:35","slug":"track-canvas-app-error-in-power-app-monitor","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2022\/08\/track-canvas-app-error-in-power-app-monitor\/","title":{"rendered":"Track canvas app error in Power app monitor"},"content":{"rendered":"<p>Canvas App is a no-code\/low-code business app where you can design the app by dragging and dropping elements onto a canvas. To build a mobile app in Dynamics 365, Canvas App is a good option. \u00a0It is primarily used to build mobile apps and also has many other functionalities. Suppose we have a requirement to create an app for sales reps to submit product information to Dynamics 365. We develop a canvas app and it&#8217;s working fine, but if an issue\/error occurs while submitting the product information, we need to track errors and provide proper solutions for the same. To track the error, we can use the notify method of the canvas app to notify and use the Track function to send that error to the power apps monitor. The power apps monitor is a tool where the user can see all the activity in the user session and also view if any error has occurred while using the app and create records. In the power apps, the monitor shows a list of the errors where the user can check all the errors that have occurred and find a resolution for the same.<\/p>\n<p>To notify and track errors in the power app monitor, one can write the following code on the select event of submit button.<\/p>\n<pre class=\"lang:css gutter:true start:1\">Notify(\r\n\r\n\"Some error occurred while submitting. Please try again.\",\r\n\r\nNotificationType.Error\r\n\r\n);\r\n\r\nTrace(\r\n\r\n\"Error\",\r\n\r\nTraceSeverity.Error,\r\n\r\n{\r\n\r\nMessage: \"Error occurred while saving the record in Dynamics 365\",\r\n\r\nScreen:\u00a0 App.ActiveScreen.Name,\r\n\r\nTraceSeverity:TraceSeverity.Error\r\n\r\n}\r\n\r\n)<\/pre>\n<p>The users can enter the required details and click on submit. If any error occurs, then it is shown to the users and tracked on the Power Apps monitor. The users can check and solve it.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32329\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1Power-app-monitor.jpeg\" alt=\"Power app monitor\" width=\"881\" height=\"450\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1Power-app-monitor.jpeg 881w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1Power-app-monitor-300x153.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1Power-app-monitor-768x392.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1Power-app-monitor-660x337.jpeg 660w\" sizes=\"(max-width: 881px) 100vw, 881px\" \/><\/p>\n<p>Users can open the PowerApps monitor from the advanced tool option as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32330\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/2Power-app-monitor.jpeg\" alt=\"Power app monitor\" width=\"368\" height=\"377\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/2Power-app-monitor.jpeg 368w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/2Power-app-monitor-293x300.jpeg 293w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/p>\n<p>Users can find the errors in the PowerApps monitor that are sent from the trace function.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32331\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/3Power-app-monitor.jpeg\" alt=\"Power app monitor\" width=\"1164\" height=\"486\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/3Power-app-monitor.jpeg 1164w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/3Power-app-monitor-300x125.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/3Power-app-monitor-1024x428.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/3Power-app-monitor-768x321.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/3Power-app-monitor-660x276.jpeg 660w\" sizes=\"(max-width: 1164px) 100vw, 1164px\" \/><\/p>\n<p>They can also get more detailed information from there. A detailed trace log helps to find the cause and where exactly the error occurred, which helps in quicker resolution.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32332\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/4Power-app-monitor.jpeg\" alt=\"Power app monitor\" width=\"1331\" height=\"543\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/4Power-app-monitor.jpeg 1331w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/4Power-app-monitor-300x122.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/4Power-app-monitor-1024x418.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/4Power-app-monitor-768x313.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/4Power-app-monitor-660x269.jpeg 660w\" sizes=\"(max-width: 1331px) 100vw, 1331px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>With the help of these steps, users can plot all the errors in one place and troubleshoot quickly, finding quicker solutions using additional information about the errors.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dynamics-365-crm-sharepoint-security-metadata-sync\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone  wp-image-32334\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1.jpg\" alt=\"\" width=\"832\" height=\"208\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/08\/1-660x165.jpg 660w\" sizes=\"(max-width: 832px) 100vw, 832px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Canvas App is a no-code\/low-code business app where you can design the app by dragging and dropping elements onto a canvas. To build a mobile app in Dynamics 365, Canvas App is a good option. \u00a0It is primarily used to build mobile apps and also has many other functionalities. Suppose we have a requirement to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2022\/08\/track-canvas-app-error-in-power-app-monitor\/\">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,38,2361],"tags":[1867,2621],"class_list":["post-32328","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","category-dynamics-365","category-microsoft-powerapps","category-technical","tag-canvas-app","tag-power-app-monitor"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/32328","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=32328"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/32328\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=32328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=32328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=32328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}