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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / User access look up fr...
Power Apps
Suggested Answer

User access look up from sharepoint list

(1) ShareShare
ReportReport
Posted on by 50
Good Day Everyone,
 
I want to create a different navigation for a button in power apps based on the user access (PIC and user). I have created a sharepoint list containing PIC email and contact person like this: 
 
And I want to create a 2 different navigations from this button for PIC (Tracking_PIC) on the list and user (Tracking)
 
Im trying to use if and look up formula but it doesnt work
 
What formula can i use to create a different navigations for this button? Any kind of assistance is really appreciate, thank you!
Untitled.png
Categories:
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey safiranrd,
     
    Could you try this? 
    If(
        RountRows(
            LookUp(
                'HR PIC', 
                Email=USer().Email
            ),
        )>0,
        Navigate(Tracking),
        Navigate(Tracking_PIC)
    )
    

    This will return a warning (Delegation) that you can ignore, since this formula will search for only one record.

    Let me know if this helped you. 
     
    If it did please consider accepting this answer as Solution, so others can find the answer as well.
    If it helped you in any other way or form consider giving it a like. 
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at
    This will do the same thing without the Delegation issue
    If(
       !IsBlank(
          LookUp(
             'HR PIC',
             Email = User().Email
          ).Email
       ),
       Navigate(Tracking), 
       Navigate(Tracking_PIC) 
    )
     
    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

  • safiranrd Profile Picture
    50 on at
    Hi @WarrenBelz and @DBO_DV,
     
    Thanks for your suggestion, i have tried both of the formula you gave but it still doesnt work. I think my powerapps cant read = symbols. Is that possible?
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey Safirand, 
     
    Sorry i Missspelled a Word. 
    If(
        CountRows(
            LookUp(
                'HR PIC', 
                Email=USer().Email
            ),
        )>0,
        Navigate(Tracking),
        Navigate(Tracking_PIC)
    )
    Could you tell us what language you are using in Power apps? 
     
    Could you also tell us what error message you are getting back? 
    If its another language then English it might be possible, that you have to switch the ',' with ';' and the ';' with ';;' so it would look like this: 
    If(
        CountRows(
            LookUp(
                'HR PIC'; 
                Email=USer().Email
            );
        )>0;
        Navigate(Tracking);
        Navigate(Tracking_PIC)
    )
     
    Let me know if this helped
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at
    Try a capital U in LookUp
  • safiranrd Profile Picture
    50 on at
    Hi @WarrenBelz and @DBO_DV 
     
    I Tried to correct the spelling and use another method but it still doesnt work
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at
    It is telling you that Email is not the valid field name.
  • safiranrd Profile Picture
    50 on at
    I think so, but my column title name in sharepoint list is "Email"

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard