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

How to get user photo and update list item with image

Hello all,

I am trying to update an item in a list using the get user photo but am struggling to get the image to display.  After using the steps below:

skarthanal_0-1631898211168.png

I get this error

skarthanal_1-1631898250348.png

The field i am trying to house the profile picture is a hyperlink/picture field but i adon't know how to make use out of the get user photo outputs

$content-type

$content

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @skarthanal,

 

Like @annajhaveri already suggested in this previous thread:

https://powerusers.microsoft.com/t5/Building-Flows/Updating-a-Custom-List-with-the-Office365-profile...

 

The profile photo is stored in the same place. So, when you know the Winner email you can use a concat function to get the correct profile image URL.

 

concat('https://domain.sharepoint.com','/_layouts/15/userphoto.aspx?size=L&username=',variable('Winner email'))

 

View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @skarthanal,

 

Like @annajhaveri already suggested in this previous thread:

https://powerusers.microsoft.com/t5/Building-Flows/Updating-a-Custom-List-with-the-Office365-profile...

 

The profile photo is stored in the same place. So, when you know the Winner email you can use a concat function to get the correct profile image URL.

 

concat('https://domain.sharepoint.com','/_layouts/15/userphoto.aspx?size=L&username=',variable('Winner email'))

 

View solution in original post

@Expiscornovus thank you!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,481)