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!
- Below is the Home Screen of my PowerApps application which has three buttons for three different screens.
- PowerApps supports a function named Param() which has the capability of reading the querystring parameter in PowerApps.
Below is the syntax for Param() function.
Here, name = Name of the QueryString parameters.
- Go to PowerApps application, select ellipsis and click the "Details" option.
- Copy the Web link.
- Now, generate the URL something like given below.
It is a combination of PowerApps Web URL + QueryString Parameter.
https://web.powerapps.com/apps/a53e269d-14aa-48ea-b3ec-01b7f47d9db2?ScreenName=2
https://web.powerapps.com/apps/a53e269d-14aa-48ea-b3ec-01b7f47d9db2?ScreenName=1
- Now, add the following formula at OnStart of the app for redirection.
- 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”.
- Publish the App.
- Now, let’s test the result.
- 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.
In the same way, for Screen 2 as well, the user is redirected to the specific page.
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!