cancel
Showing results for 
Search instead for 
Did you mean: 

How to Launch to specific screen in powerapp?

Recently we had a requirement to launch different screens to different users depending upon the user issue.

 

User creates an issue and by using Microsoft Flow it processes the data and sends specific Powerapp's URL.

 

If the User Issue is A, when the user clicks on the Powerapp's URL, it has to launch Screen A.

If the User Issue is B, when the user clicks on the Powerapp's URL, it has to launch Screen B.

 

Here's how we have done that.

 

With in the Microsoft Flow when the User Issue Type is A then "&ScreenID=1" and if the User issue Type is B then "&ScreenID=2" is appending to the Powerapp URL.

 

With in powerapp, On start property of app write following formulae.

Set(startScreen,Param("screenID"));

Switch(startScreen, "1", Navigate(Screen1),"2",Navigate(Screen2));

In the above formulae, we are reading the ScreenID parameter and depending upon its value, we are navigating to the corresponding screen.

 

Hope this helps someone who is looking for this.

 

Meet Our Blog Authors
  • PowerApps Community Mentor 2018, Practicing surgeon and former Professor of Surgery, University of Illinois, Chicago.
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 12 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • My name is Timothy Shaw and I create digital solutions using the Power Platform, Office 365, and Azure SQL and handle the IT for a small company in the energy sector. When not building the future :), I enjoy playing guitar, good (or really bad!) sci-fi, Xbox therapy, and hanging with my wife and son. Twitter: @ShortForTim