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 / Using User Email for l...
Power Apps
Answered

Using User Email for lookup

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I want to use the User E-Mail to look in a connected excel table for another value, which I can use later to filter a ComboBox.

I tried it with a simple lookup: 

LookUp(UserInfo, UserMail=User().Email, Country)

But it's not working. 

Does anybody know why?

 

Thank you!

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Can you give a little more information on your data, table name etc. Your formula looks fine.
    LookUp(UserInfo, UserMail=User().Email, Country)

  • Community Power Platform Member Profile Picture
    on at

    Sure, sorry.

    The table name is 'UserInfo', it has only two columns, one is named 'UserMail' and the other one 'Country'.

     

     

     

  • kbilakanti Profile Picture
    315 on at

    @Anonymous Your forumula, looks fine, can you please add a screenshot of your excel data if that's okay with you. And can i know what is the error you are getting in that formula?

  • Verified answer
    eka24 Profile Picture
    20,923 on at

    As i said earlier your formula if fine. I have tested it at my end. Kindly look at data source in your UserMail if it corresponds to the User().Email.

    MAIL.JPG

  • Community Power Platform Member Profile Picture
    on at

    Attached a screenshot of the excel table and the formula + what I get as value (false).

    The E-mail address in the excel sheet corresponds to the User().Email.

     

     

     

  • eka24 Profile Picture
    20,923 on at

    Refresh your datasouce

  • Community Power Platform Member Profile Picture
    on at

    Already did this a couple of time and also deleted the connection and connected it again,

  • eka24 Profile Picture
    20,923 on at
    It will definitely be resolved. What about another textbox, or logout login
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi all,

    I will throw my 20c worth in (probably all that it is worth).

    This causes a delegation issue with SharePoint - not sure on Excel.

    It might be worth trying

    UpdateContext({vEmail:User().Email});
    LookUp(
     UserInfo, 
     UserMail=vEmail, 
     Country
    )
  • Community Power Platform Member Profile Picture
    on at

    Not working...

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard