
I have made an single app for several department. I have a list of user with their email address.
Therefore, I want the user to view only his screen only while opening the app.
Can I detect user and route him to a particular screen.
For Example At startup of App
If user aaabbbbb@email.com then navigate to FieldServiceScreen
If user nnnnnnnn@email.com then navigate to WorkshopScreen
Please advise, how to detect by code while user is opening the app and where to place the code.
Hi @MIA27 ,
On the StartScreen (you also need a Default screen to go to it the user is neither of these) - also put the user to test against in lower case to allow for the user not being this.
If(
Lower(User().Email) = aaabbbbb@email.com,
FieldServiceScreen,
Lower(User().Email) = nnnnnnnn@email.com,
WorkshopScreen,
DefaultScreen
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps