Redirect Users To A Specific Screen Of PowerApps From Email Notification Or Deep Links

In this article, we will learn how we can redirect users to a specific PowerApps screen. The concept is sometimes called “Deep Links in PowerApps”. Here, we will use Param() function to redirect user to specific page from the web URL.

Overview

 
The concept of redirecting users to the specific PowerApps screen is sometimes called “Deep Links in PowerApps”. Nowadays, for any business application, an email notification is a very common concept. A user wants to click on the email URL, and be redirected to the specific screen of the App.
 

Scenario or Use Case

 
We came across a requirement when the user clicks on email notification, the user should be redirected to the specific screen of the App. My PowerApps application has three screens.
 
So, now let’s get started!
  1. Below is the Home Screen of my PowerApps application which has three buttons for three different screens.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links
    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links
  2. PowerApps supports a function named Param() which has the capability of reading the querystring parameter in PowerApps.

    Below is the syntax for Param() function.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

    Here, name = Name of the QueryString parameters.

  3. Go to PowerApps application, select ellipsis and click the "Details" option.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

  4. Copy the Web link.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

  5. Now, generate the URL something like given below.

    It is a combination of PowerApps Web URL + QueryString Parameter.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

    https://web.powerapps.com/apps/a53e269d-14aa-48ea-b3ec-01b7f47d9db2?ScreenName=2
    https://web.powerapps.com/apps/a53e269d-14aa-48ea-b3ec-01b7f47d9db2?ScreenName=1

  6. Now, add the following formula at OnStart of the app for redirection.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links
    1. If(Param("ScreenName") = "1",Navigate(Screen1),Navigate(Screen2))    
    If the Email URL screen name has value 1, then it will be redirected to the “Screen 1”, otherwise it will be redirected to “Screen 2”.

  7. Publish the App.

  8. Now, let’s test the result.

  9. Add the following URL.

    https://web.powerapps.com/apps/a53e269d-14aa-48ea-b3ec-01b7f47d9db2?ScreenName=1

    Instead of redirecting the user on the Home screen, they are automatically redirected to Screen 1.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

    In the same way, for Screen 2 as well, the user is redirected to the specific page.

    Redirect Users to Specific Screen of PowerApps from Email Notification or Deep Links

Conclusion

 
This is how we can easily redirect the user to the specific PowerApps forms. I hope you love this article. Don’t forget to follow me!