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 / How to extract 'chat' ...
Power Apps
Answered

How to extract 'chat' email address rather than actual email address

(1) ShareShare
ReportReport
Posted on by 27

Hi
In my app, I have the following:
A Global Variable: Set(CurrentUser, User())
And a Sharepoint List with the following fields (lots more, obviously, but these are the pertinent ones):

User (People Picker)
Access Level (Choice field)

Various screens are visible or not, depending on the user's access level. All controlled by Look Ups on the 'visible' control. 
e.g.:
Audit Screen, Visible = 
If(LookUp(UserList,'User'.Email=CurrentUser.Email,'Access Level'.Value)="Full" ||
LookUp(UserList,'User'.Email=CurrentUser.Email,'Access Level'.Value)="Team", false, true)

This works for most people. 
However, there are 2 different listed email addresses in user's outlook profile: An 'Email' and a 'Chat'. For most people they are the same, but for some they are different, e.g.: 
Email: Joe.Bloggs@company.co.uk
Chat: ha1234@company.co.uk

 

CurrentUser.Email picks up the Chat address. User.Email picks up the email address.
So for Joe Bloggs above, the lookup doesn't work, because it can't match the CurrentUser.Email with the User.Email. As a result, poor old Joe can't view the page. 

How can I extract this 'Chat' email address? Or, set the CurrentUser variable to show the 'email' rather than 'chat' address? 

Any help gratefully received

Categories:
I have the same question (0)
  • Verified answer
    DaddyCoolhwip Profile Picture
    27 on at

    Think I've managed to fix it. Going to put my solution here in case it helps anyone else, but remain open to better ideas. 
    1. Added Office365Users connection. 
    2. Changed variable to: Set(varCurrentUser, Office365Users.UserProfile(User().Email).Mail)
    3. Slightly tweaked lookup (now that variable is capturing specific email field rather than generic user details) to: 
    If(LookUp(UserList,'User'.Email=varCurrentUser,'Access Level'.Value)="Full" ||
    LookUp(UserList,'User'.Email=varCurrentUser,'Access Level'.Value)="Team", false, true)

    So far, seems to be 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard