Power Apps Deep Linking | Link to a Specific Screen in Power Apps

I was recently building a Power Apps application. For that, I needed to send the Power Apps screen[Update Password] link in an email notification.

I achieved this by using the deep linking technique in Power Apps so users could easily update their passwords.

In this article, I will explain Power Apps Deep linking and how to link to a specific screen in Power Apps. We will also see how to work with Power Apps deep linking multiple parameters.

Power Apps Deep Linking | Deep Linking in Power Apps

Deep Linking in Power Apps is a technique for creating URLs that point or redirect directly to a particular screen.

Refer to the example below. When I click the link in the email, it navigates me to a specific Power Apps screen [Create New Password].

powerapps deep link to specific screen

This will be useful when we want to send users to a certain screen and set of information instead of requiring them to navigate using the URL’s parameters from the app’s home screen.

Power Apps Deep Link to a Specific Screen

Here, we’ll see how to create deep linking to a specific screen in Power Apps. Follow the steps below for creating deep linking.

1. Provide the below formula in the StartScreen property of your Power Apps application.

If(Param("screen") = "New_Password", Set_NewPassword_screen,Empty_screen)

Change the screen names Set_NewPassword_screen and Empty_screen to the screen names of your application.

how to create deeplink url for powerapps

After this, save and publish the application.

2. Now, again open Power Apps -> Click on Apps in navigation -> Select the app and click on ellipses() -> Select Details.

OR

Select the desired app -> In the top navigation, click on Details.

deep linking in powerapps

3. Copy the Web link under Details of the application.

powerapps deep linking email

4. Now, open the new tab in the browser and paste the copied link. Add the variable created in the Power Apps StartScreen property with & in the URL.

Like in the link below.

https://apps.powerapps.com/play/e/default-768a21d4-ed73-44f4-8cac-c7bde6k52e57/a/afe09g5a-3b10-45b1-9ff8-590935cb7c1c7?tenantId=798a21d4-ed73-44f4-8cac-c7bde6d52e57&screen=New_Password

5. Refer to the image below after clicking on the provided link; the screen we set in the formula is visible here.

powerapps link to website

In this way, we can deep link to a specific screen.

Power Apps Deep Linking Multiple Parameters

To provide security for my Power Apps screen, I’m trying to add the email and security key along with the Power Apps screen link using deep linking.

To pass multiple parameters in a deep link, you can add them to the URL separated by the ‘&’ symbol.

Syntax: https://apps.powerapps.com/play/app-id?param1=value1 & param2=value2

In the above syntax, param1 and param2 are the parameters’ names, and value1 and value2 are the corresponding values.

Look at the URL in the example below. There are multiple parameters in the deep link.

powerapps deep linking startscreen

Here, I’m sending emails containing Power Apps screen links through Power Automate.

1. Browse make.powerautomate.com to navigate the Power Automate Home page -> Click + Create -> Select Instant cloud flow with a Power Apps(V2) trigger and click Create button.

Inside the trigger -> Click Add an Input -> Select Email Input.

Add two actions to the flow: Compose(Data Operations) and Send An Email V2(Outlook). Fill in the actions as shown in the image below.

power apps deep linking multiple parameters

2. In the Send an email(v2) action, we’re writing HTML code to insert the deep link into the notification email.

We need to provide the direct link to a specific screen inside the hyperlink reference in an anchor tag(<a href=” “> </a>). To add multiple parameters within the link, use & separate them.

Here, I’m adding parameter values dynamically from the flow.

<p>Please click the link below to reset your password: 
<a href="https://apps.powerapps.com/play/e/default-798a21d4-ed73-44f4-8cac-c7bde6d52e57/a/afe09d5a-3b10-45b1-9ff8-55935cb7c1c7?tenantId=798a21d4-ed73-44f4-8cac-c7bde6d52e57&screen=New_Password&email=@{triggerBody()?['email']}&SecurityKey=@{outputs('Compose')}">
Set NewPassword</a></p>

3. Now, save the flow and test it. Lastly, you will get the user email address and security key in the deep linking URL.

Like in the above we can provide multiple parameters in Power Apps deep linking URL.

4. Now, extract these email and security keys into the Power Apps application. Provide the below code in the Onstart property of the app.

Set(VarEmail, Param("email"));
Set(VarSecurityKey, Param("securityKey"));

5. To verify the email and security key, provide the formula below in the screen’s OnVisible property.

If(
    LookUp('Event Registration Form', Email = VarEmail && SecurityKey = VarSecurityKey, true),
    Navigate(Set_NewPassword_screen),
    Notify("Invalid access", NotificationType.Error)
)

Save and publish the app. Now, only authorized people can open this Power Apps screen.

I hope you found this article useful. I have explained deep linking in Power Apps, including deep linking to a specific screen and deep linking with multiple parameters.

Follow this article to get the particular screen link in Power Apps.

Additionally, you may like some more Power Apps tutorials:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…