2

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.

2
  • Why are you storing an imag in single line text? Output from get user photo is not even a picture url Nov 27, 2018 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? Nov 29, 2018 at 7:15

2 Answers 2

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">
2
  • I am able to generate image using below code: Where do you use this code? In th column formatting? If so, could you post the full column formatting code? Jan 22, 2020 at 9:41
  • I am showing an image in custom coding. So the image tag src will be made of two values we are storing in Title and Content columns. Jan 23, 2020 at 13:27
0

It worked for me really good. Instead of saving in a list, I did it in a variable and it worked as well. Thanks for sharing.

My way was storing the values in two different variables, see examples below: enter image description here

enter image description here

And then I passed each variables in an img tag:

<img src="data:varContentType;base64,varContent"/>

And it worked really well and the PDF export is showing my image.

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.