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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,643)