cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lliu08
Level: Powered On

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
Dual Super User
Dual Super User

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
Dual Super User
Dual Super User

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

 

 

lliu08
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,506)