cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bassbelch
Frequent Visitor

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
Frequent Visitor

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

CarlosFigueira
Power Apps
Power Apps

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

5 REPLIES 5
HolmesLL
Frequent Visitor

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

CarlosFigueira
Power Apps
Power Apps

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

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.

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.

THanks for the solution. I'm working in a model driven app and would like the same functionality. How can I implement this solution? I don't see the event.

 

Thanks,

CP

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,069)