Todd Baginski's Blog - A SharePoint, Mobile, Office, and Azure Blog

How To Open PowerApps From Flow Notifications

30 January 2017

Comments:

0
 January 30, 2017
 0
AIC Taft Theatre

In a world where users want instant notifications and access to information…

How do you like that movie trailer intro? ūüôā

Let’s say you have a Microsoft Flow and you want it to send a notification to a mobile device when something happens. Then, when the user opens the notification in Microsoft Flow you want them to be able to click a link in the notification and open a PowerApp to learn more or act on the notification. Here’s how you do it.

First, create a Microsoft Flow and add a notification. In this simple example, my Flow queries an Azure PaaS SQL Database for new projects that have not been estimated. When new projects are found the Flow sends notifications.

PowerApp

The screenshot below shows the notification at the end of the Flow.

Send a notification

In this example, I am opening the Cost Estimator sample PowerApp.  Here you can see it in the Sample Apps gallery.

Search for Cost Estimator PowerApp

In order to open the Cost Estimator PowerApp from the Microsoft Flow notification message you need to know the Id for the Cost Estimator PowerApp.  You can get the Id for a PowerApp by opening the PowerApp in a web browser and looking at the URL.  In the screenshot below you can see the portion of the URL (in green) that contains the ID for the Cost Estimator PowerApp.

Get the Id for a PowerApp

In the Flow notification, use the Id for the PowerApp to create the link to open the PowerApp. ¬†You can see where I used the Id for the Cost Estimator PowerApp highlighted in yellow below. ¬†Notice the link format. This link format opens the corresponding PowerApp when it is clicked. You can learn more about the URL format here: PowerApps update ‚Äď Universal links, HTML control improvements, new service connections and more

Deep link to a PowerApp from a notification

Here’s what it looks like when the flow runs. ¬†First, a notification appears on my Android device where I have the PowerApps and Flow apps installed.

Clicking on the notification opens the Flow app and displays the notification message.

Clicking the Open Cost Estimator link in the notification message opens the PowerApps app and loads the Cost Estimator app.  The first time you run it you are prompted to allow the PowerApp to use the Camera.

After you grant the Cost Estimator Powerapp permission to use the camera, it begins to load.

Now the Cost Estimator PowerApp is ready to use.

Hope this helps you out!

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.