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 / 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
    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
    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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard