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 / Show office365 User Ph...
Power Apps
Answered

Show office365 User Photo base on a email

(0) ShareShare
ReportReport
Posted on by 39

Hello all, first time posting here, hoping to get some help.

 

I am creating a Gallary where the gallary contains information from a SQL table with a person's full name, score and e-mail. In that gallary, I am hoping to also show the person's photo image from Office 365. In this case, I believe the join will base on the e-mail since Office 365 has all users' email. 

 

I thought it should be a lookup function but I am not too sure how to use a lookup function with Office365 Users. 

 

Please advice, thank you!

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    This is assuming you have Office 365 Exchange and that all the users have pictures.  Otherwise it may not work as expected.

     

    To show the photos add an Office365Users connection to the PowerApps.  Then user the following in teh Image property of an Image control.

    Office365Users.UserPhotoV2(user's email)
  • mdevaney Profile Picture
    29,989 Moderator on at

     

    @lliu08 

    Place an Image control into your gallery and put this code in the Image property.  I assume the name of your SQL column is email.

     

    Office365Users.UserPhotoV2(ThisItem.email)

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

     

     

  • lliu08 Profile Picture
    39 on at

    Thank you so mcuh! It worked!! I thought I will need a look up function! 

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