cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
baodo1
Frequent Visitor

Fetching the profile picture of non-current user

Hello,

 

I am currently working on an app that requires a profile picture. The gallery displays all the information contained in the sharepoint list, and clicking on the gallery item will navigate to detailed screen. The question is that how can i display a Outlook365 picture of a user who are not currently signed on? As I am displaying all the historical reports created by different individuals in the gallery, and I want to display the picture of whoever created the report in the detailed screen. 

 

Thank you

2 REPLIES 2
cds
Impactful Individual
Impactful Individual

Use the office 365 connector

 

on image.image put Office365Users.UserPhotoV2(userID)

zmorek
Super User
Super User

With this, be warned, that if the user doesn't have a photo, or they stop existing as a user but remain in the list (e.g. left the company), the app will show the user an error with a red banner. 

Some resources:

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,088)