web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Updating a Custom List...
Power Automate
Answered

Updating a Custom List with the Office365 profile picture to display photo

(0) ShareShare
ReportReport
Posted on by 27

Hello 

 

Current I have a flow that retrieves the user photo from O365 like this:

 

Pedrogr90_0-1615547160386.png

 

My problem is that I don't know how to use the output (the binary) to update a column in a custom List that I have in order to display the photo as a thumbnail. The List just contains basic employee data like name, email, etc. 

 

As far as I read online, the column called for example "Photo" must be of type "Hyperlink". However, that's just text. 

 

Can someone point me in the right direction?

 

Thank you

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Pedrogr90  are you looking to save link to user's profile picture in SharePoint list? If yes then you can save the below URL in the picture column, replace <useremail> with user's email address.

    <siteurl>/_layouts/15/userphoto.aspx?size=L&username=<useremail>

  • Pedrogr90 Profile Picture
    27 on at

    Hello

     

    What I am trying to achieve is to display the user photo in the SharePoint column. Its true that the above URL gets the user photo, but my main problem is how to display it on the SP list column

     

    Thanks

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Pedrogr90  so i understand you want to display user photo in SharePoint column, please note that SharePoint column type should be Hyperlink or Picture as shown in screenshot below

     

    annajhaveri_0-1615554768857.png

     

     

    Now do you want to set the value of the column from a flow? is there any specific reason why you want to set the picture value in column from flow? 

  • Pedrogr90 Profile Picture
    27 on at

    Okay so now I know that its Hyperlink or Picture with Picture option in Format URL. I would need to find out how to do that via a HTTP request to Sharepoint because I want to automate the process. The reason behind why I need this is because the List contains employee info, and I would like to add the photo of each employee. 

     

    Now also the question is, how can I use the output from Get user photo V2 to include it in the column? 

     

    Thank you

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Pedrogr90  so first, how you want the flow to trigger, it on edit of the item, or you want the flow to periodically get the items from list and update the pictures in those items?

     

    You can update the picture column value using http request to SharePoint from flow as shown in below screenshot

    annajhaveri_0-1615558250642.png

     

  • Pedrogr90 Profile Picture
    27 on at

    Okay and back to the original question. How do I handle the output of get user photo v2 to include it in the HTTP request?

     

    Thanks

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Pedrogr90  you dont need to get user photo, use flow expressions in compose action, in this expression, replace  https://domain.sharepoint.com with your site URL. Replace  Author with your column name from which you want to get the user email

    concat('https://domain.sharepoint.com','/_layouts/15/userphoto.aspx?size=L&username=',outputs('Get_item')?['body/Author/Email'])

    Screenshot 2021-03-12 215538.png

     

    Then use the output of compose action in the Send HTTP action body parameter

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard