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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Post an image to Teams...
Power Automate
Answered

Post an image to Teams using Automate action "Post a message (V3)"

(1) ShareShare
ReportReport
Posted on by 50

(Apologies ahead of time for the post formatting. I entered all the code examples in the Code Sample area but it spit them back as invalid HTML ¯_(ツ)_/¯ If anyone has suggestions on how to reformat for the forum, let me know )

 

I'm trying to post an image to Teams using the "Post a message (V3)" action. I've structured the message as

 

<html>

<body>

<h2> {{Text Message}} </h2>

<img alt='Picture from Text' src='{{Picture URL}}' />

</body>

</html>

 

When running, the step shows the following as the Message under Inputs:

<html>

<body>

<h2>Test</h2>

<img alt='Picture from Text' src='https://api.twilio.com/2010-04-01/Accounts/AC54d4bd98f56d56335971a8348021837b/Messages/MM8d674476560f308a3326b73bda8535d7/Media/ME1936bb81a4ba138907802c77eea2338f' />

</body> 

</html>

 

The Outputs show the following under Body->Content:

<h2>Test</h2>\n\n<img alt=\"Picture from Text\" src=\"https://api.twilio.com/2010-04-01/Accounts/AC54d4bd98f56d56335971a8348021837b/Messages/MM8d674476560f308a3326b73bda8535d7/Media/ME1936bb81a4ba138907802c77eea2338f\"> 

 

When the message displays in Teams, it looks like 

https://imgur.com/B4wDvAA(sorry if the image isn't coming through, I couldn't figure it out - the imgur link works)

 

I'm not sure how to get it to display the image. The URL (which does not work on its own, because of the encoding) for the image in Teams is https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fapi.twilio.com%2f2010-04-01%2fAccounts%2fAC54d4bd98f56d56335971a8348021837b%2fMessages%2fMM8d674476560f308a3326b73bda8535d7%2fMedia%2fME1936bb81a4ba138907802c77eea2338f 

 

If I take the html above in the Inputs section and save it to an html file, it shows just fine in my browser. If I take the html above in the Outputs section and save it to an html file, it has the same problem and does not display the image. I've tried it with single quotes, double quotes, with <!DOCTYPE html> at the start of the message, and without <html> and <body>. None of them change the result,

Anyone have any other ideas?

 

 

 

 

 

 

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @DonV,

     

    Unfortunately, post a message to Microsoft Teams with an image is not supported in Flow by now, there is an idea of it already created in the IDEA forum, you can head to vote it, collect votes to make it come true in the future:

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Post-a-message-with-a-photo-to-Microsoft-Teams/idi-p/111896

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Verified answer
    DonV Profile Picture
    50 on at

    Upon further research and asking Twitter, the correct answer is to use an Adaptive Card, not that it's not solved.

     

    Thanks to Brian Dang for the correct answer.

     

    https://twitter.com/8bitclassroom/status/1195224646330671104

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    helpful

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard