cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Show office365 User Photo base on a email

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User II
Dual Super User II

Re: Show office365 User Photo base on a email

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)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User II
Dual Super User II

Re: Show office365 User Photo base on a email

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)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Super User
Super User

Re: Show office365 User Photo base on a email

 

@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."

 

 

Highlighted
Helper I
Helper I

Re: Show office365 User Photo base on a email

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,410)