(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
(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?
![]()