web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / StartScreen Role Based...
Power Apps
Unanswered

StartScreen Role Based Navigation

(1) ShareShare
ReportReport
Posted on by 6
I'm using StartScreen to add some deep linking to my app. I want to provide a link to the admin page but need it to navigate to the home screen if the current user is not on the user SharePoint list I have setup. I have tried various different formulas to no avail. This is the one that seemed most promising but still only wants to navigate to the admin screen. 
 
Switch(
Param("screenname"),
"viewedit",
'scrn_ViewReq',
"admin",
If(
!IsBlank(
Filter(
'User List', User.Email = User().Email
)
),
'scrn_Admin',
'scrn_Main'
),
'scrn_Main'
)
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,865 Most Valuable Professional on at
    Hi @CU17122216-0​​​​​​​
    Try this - If you use Filter, you need to test for Empty as it is a Table
    Switch(
       Param("screenname"),
       "viewedit",
       'scrn_ViewReq',
       "admin",
       If(
          !IsBlank(
             LookUp(
                'User List', 
                User.Email = User().Email
             )
          ),
          'scrn_Admin',
          'scrn_Main'
       ),
       'scrn_Main'
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • CU17122216-0 Profile Picture
    6 on at
    I tried LookUp as well. I'll try it again tomorrow to be sure. Thank you for your response! 
  • Suggested answer
    Mehmet_Powerapps Profile Picture
    26 on at
    I found this solution, 
    Switch(
        Param("screenname"),
        "viewedit", 
        'scrn_ViewReq', 
        "admin", 
        If(
            CountRows(
                Filter(
                    'User List', 
                    User.Email = User().Email
                )
            ) > 0, 
            'scrn_Admin', 
            'scrn_Main'
        ), 
        'scrn_Main'
    )
  • CU17122216-0 Profile Picture
    6 on at
    I figured out the problem. At my organization, we technically have two emails; one with our name and one with our employee ID. Turns out the User().Email pulls our employee ID email and the people picker field in SharePoint is our name email. 
     
    This is what I ended up doing:
     
    If(!IsBlank(LookUp('User List',Employee_ID = Left(User().Email,5)
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard