Our use of cookies

We use cookies to tailor your experience, gather analytics, and provide you with live assitance. By clicking "Accept" or continuing to browse our site you agree to the use of cookies. For more details please read our Cookie Policy.

PowerApps Debugging and Troubleshooting made easy with Monitor

by Danish Ali Detho | O365 & Power Platform Solution Architect

Troubleshooting and debugging are an integral part of building and supporting a resilient app especially when it is built using a low-code development platform because the logging information is not readily available to developers and requires some sort of admin access to retrieve it. This was a major issue for Power Apps especially when the app goes into the hands of users in order to make the troubleshooting of apps developer-friendly, Microsoft released a new feature called Monitor within the PowerApps Studio. In this blog, we will take a deeper look at Power Apps Monitor and how we can use it to troubleshoot issues with our canvas apps.

Power Apps Monitor

PowerApps Monitor is a monitoring tool available with Power Apps Studio which provides App Makers the ability to view the logs which consist of a stream of network calls made from the canvas app in the form of events from a user’s session to diagnose and troubleshooting problems. App makers cans use it to make their apps more efficient by looking at the number of calls being made to the data source and potentially removing any unnecessary calls. We can trace events as they occur in a canvas app during the authoring experience in Power Apps Studio. Monitor also helps to troubleshoot published apps during runtime in order to fix any errors. Makers of model-driven apps can monitor page navigation, command executions, form-related issues, and other major actions to understand app behaviour and make improvements.

Different modes of Monitoring PowerApps

Monitoring App during Development

Sign in to Power Apps, Create a new app, or edit an existing app, and then On the left pane select Advanced tools -> Open monitor.

This will open PowerApps Monitor in a new browser tab and connects it to you’re running App session.

Once the monitor is open, you can go back to the App and then Play the App. Once you perform some actions within the app, you will see the monitor will be populated by a stream of events. You can review various properties for each event inside Monitor. Depending on the event category, some of these properties might not contain data. You can also download the events listed in Supported events for offline analysis. Events can be downloaded in .json or .csv format, and you can share them with others as well.

Monitoring App after Publish

Sign in to Power Apps and click on the left pane, select Apps. Select an app from the list and then select Monitor from the menu or from the ribbon on top.

Once you Play the published app it will open the app in a new browser tab and connects it to the PowerApps0 Monitor. You’ll immediately see events in Monitor when the app is loaded in the web player, and as you interact with the published app.

In order to go deeper into debugging and view the expressions in Monitor for the published app, we need to turn on the setting to publish the expressions with the app. To enable this setting, go to File > Settings, and then turn on Debug published app.

Troubleshooting User Sessions

An error can often be user-specific as well in which case you will need to monitor a User’s session to further troubleshoot. Monitor offers two features for troubleshooting and debugging problems in Power Apps via User Session:

Collaborate with User to Monitor via Invite User

This enables developers to invite users within the same organization and share a monitoring session with them. When you invite others to participate in a session, they see the exact same app events in their own browser without having to open the app or reproduce the specific scenario that you’re debugging

Collaborate with User to Monitor via Connect user

This enables developers to share a link with users within the same organization to open a published app and connect it to a Monitor session so that they can watch the sequence of events generated by the user’s interaction.

Summary

Power Apps Monitor enables developers to diagnose and troubleshoot problems faster, and build more reliable apps. It Provides a deeper view of your app by logging all the key activities that occur in the app as it runs. It also provides details of how the events and formulas contained in your app work, so you can improve performance and identify any errors or problems. One of its most useful features in my point of view is Collaborative troubleshooting with Users without the need to share screens with them via inviting them to Monitor Sessions. This tool will definitely make App dev’s life easy when it comes to diagnosis and troubleshooting.

 

Latest articles

AxioWorks Newsletter September 2023: An exhilarating month.

30 Sep 2023

Hello Reader, September has been a bustling and exhilarating month for us at AxioWorks, filled with advancements, collaborations, and a whole lot of […]
[read article]

The Collaborative Pathway: Bridging Minds in the AI Ecosystem

19 Sep 2023

In recent days, I found myself immersed in an enlightening conversation with a friend, a fellow entrepreneur steering his ship in the vast sea of […]
[read article]

AxioWorks Newsletter August 2023: A month of milestones and innovation.

28 Aug 2023

Hello Reader, September seems to be a month of unexpected milestones and continued innovations at AxioWorks. As the summer wanes and the autumn […]
[read article]

Use Graph API in Power Automate to read large Excel files from SharePoint

28 Aug 2023

Power Automate, a part of Microsoft’s suite of tools, is increasingly becoming a preferred choice for automating workflows and business […]
[read article]

From Punch Cards to Python: Still Hitting the Keys in my 50s

16 Aug 2023

I spent the entire weekend writing code, not because of deadlines to meet or million-pound dreams, but for the kick that I still get from doing it. […]
[read article]

AxioWorks Newsletter July 2023: Unveiling AxioWorks’s latest successes and exciting innovations

27 Jul 2023

Hello Reader, We hope this monthly update finds you in good spirits. As always, we are eager to share the latest developments and exciting ventures […]
[read article]

AI and Data: The Symbiosis of Interaction and Accuracy

13 Jul 2023

Artificial Intelligence (AI) has rapidly emerged as a revolutionary technology that fundamentally alters the nature of human-machine interactions. […]
[read article]

AxioWorks Newsletter June 2023: SQList v8 Release, Webinars, and New Product Development

30 Jun 2023

Hello Reader, Greetings to all our valued customers and subscribers! We are thrilled to share some exciting updates and developments with you in this […]
[read article]

Safeguarding Secrets with Secure Strings and Environment Variables in the Power Platform

26 Jun 2023

In today’s interconnected digital landscape, safeguarding sensitive information and maintaining robust security measures is of paramount […]
[read article]

Case study: Streamlining Medical Trial Data Analysis in the Pharmaceutical industry

15 Jun 2023

In the ever-evolving landscape of the pharmaceutical industry, conducting medical trials and analysing the resulting data are critical for the […]
[read article]

Get SharePoint and SQL news to your inbox

Stay up-to-date with industry news and trends, SQL and SharePoint innovations and all the latest from AxioWorks by subscribing to our monthly newsletter.

Subscribe to the AxioWorks newsletter

*