cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bassbelch
Level: Powered On

Different Home Screen depending on current user

I was wondering if it was possible to show a different home screen based on which user is currently logged in?

The scenario we have is an interactive process app which different departments can access, but each department has a different "Home" process. So when the user opens the app, they are automatically shown their "Home" process

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
HolmesLL
Level: Powered On

Re: Different Home Screen depending on current user

1. You need a dummy homepage, usually a company logo only, with a hidden timer to navigate to department screen. 

2. You may use Office365Users.MyProfile().Department to determine what department screen the user redirect to. 

View solution in original post

Highlighted
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Different Home Screen depending on current user

Expanding on the suggestion by @HolmesLL suggestion, you can use the OnStart property of the app (which you can find on the first screen) to navigate to the first screen that you want your users to see. That would be the case if you didn't want a splash screen. The formula would look like the one below:

Set(name, Office365Users.MyProfile().Department);
If(
    name = "Sales", Navigate(SalesScreen, ScreenTransition.None),
    name = "Marketing", Navigate(MarketingScreen, ScreenTransition.None),
    name = "R&D", Navigate(RAndDScreen, ScreenTransition.None))

View solution in original post

4 REPLIES 4
HolmesLL
Level: Powered On

Re: Different Home Screen depending on current user

1. You need a dummy homepage, usually a company logo only, with a hidden timer to navigate to department screen. 

2. You may use Office365Users.MyProfile().Department to determine what department screen the user redirect to. 

View solution in original post

Highlighted
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Different Home Screen depending on current user

Expanding on the suggestion by @HolmesLL suggestion, you can use the OnStart property of the app (which you can find on the first screen) to navigate to the first screen that you want your users to see. That would be the case if you didn't want a splash screen. The formula would look like the one below:

Set(name, Office365Users.MyProfile().Department);
If(
    name = "Sales", Navigate(SalesScreen, ScreenTransition.None),
    name = "Marketing", Navigate(MarketingScreen, ScreenTransition.None),
    name = "R&D", Navigate(RAndDScreen, ScreenTransition.None))

View solution in original post

bassbelch
Level: Powered On

Re: Different Home Screen depending on current user

Thanks for the suggestions. This is something definately worth exploring. We're not actually using "departments" from the user profile per se, as the fields we want to filter on are not stored in active directory. Instead of using the user profile, we're actually thinking of using a SharePoint list as a lookup. Presumably this can be done in a similar way to how you desribed.

shrinkTech
Level: Powered On

Re: Different Home Screen depending on current user

this is exactly where I am stuck .. although my screen switch is happenning but SharePointIntegration.Selected is not returning the value when we click open the sharepoint list item first time. It switches to the correct screen only when I close and reopen the form second time. 

 

My form is Sharepoint customized form where we are implementing this.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,811)