cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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

Highlighted
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
Highlighted
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

Highlighted
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

Highlighted

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.

Highlighted

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.

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,171)