1

I have requirement that I need to get current weeks birthday. The approach we are using is we have create a flow and it is recurring every day. It will go through each user in delve and check if any user's birthday match with today's date. If it matches, we add users's entry with details like user email, birthday message and user image.

I am able to put all other details in list except user image. I am having below output when I use "Get User Photo (V2)" action:

Get user photo

But when I add this out put in create item, it is storing junk data in my list.

Create list item error

My column type in list is single line of text. If I keep it to hyperlink or picture, the variable do not show up in the create item action.

Is there anything or any way I can store the user image in custom list? Thanks in advance.

  • Why are you storing an imag in single line text? Output from get user photo is not even a picture url – harshal gite Nov 27 '18 at 17:42
  • I got your point. I have created separate column for content and it is multiple line of text. But how can I get content value and store in this column? – love thakker Nov 29 '18 at 7:15
1

So finally able to get the photo from flow. I have updated my list and created new column picturecontent (multiple line of text). This is used to store $content data. My previous column is storing $content-type data.

I have used below expression in create item:

for content type:

body('Get_user_photo_(V2)')?['$content-type']

for content:

body('Get_user_photo_(V2)')?['$content']

Flow user photo

This stores the value in my list.

flow user image 1

I am able to generate image using below code:

<img src="data:content-type-value;content-value">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.