1

I would like to know the best way to have an image on SP to show in a post on Teams. I have a Flow which pulls a SP list item daily and posts it in Teams. The problem I have is that the images don't show. I can make them an image column or an attachment, either is fine. I tried html img with src from SP but it doesn't show. I tried html img with src from non-SP site and it works. I tried base64 encoding the image, but it makes the message too large, so it won't post. How can i get an image from SP onto my Teams post? Thank you.

EDIT: Adding images Message in Teams App Message in Teams Online

  • I forgot to mention I am sending the message to a Webhook in Teams, so I'm using the Actionable Message format. – chriscam85 Mar 11 '18 at 1:06
  • Try this messagecardplayground.azurewebsites.net. I did try this and was able to get the image to work under: activityImage but not heroImage. – SharePointer Mar 12 '18 at 10:39
  • @SharePointer can you post your image url? I have a feeling the permissions need to be external (so if i can see it). If so, how can I set the images to be external? – chriscam85 Mar 12 '18 at 17:07
  • @SharePointer I posted images... It seems to work in Teams Online (firefox) but not on the Teams application. – chriscam85 Mar 12 '18 at 17:33
  • Okay great to know it worked. – SharePointer Mar 12 '18 at 21:27
1

You can use the Compose action with the following html:

<img alt="Embedded Image" src="URL OF THE IMAGE FILE/ATTACHMENT" />

Flow would like something like that:

enter image description here

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.