
Announcements
I'm using the Post message in a chat or channel action from the Microsoft Teams connector. When I use an HTML image tag with a src value of an image I find online (such as https://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Microsoft_Office_Teams_%282018%E2%80%93present%29.svg/1200px-Microsoft_Office_Teams_%282018%E2%80%93present%29.svg.png) it posts the image in the message as expected.
When I swap the src to the URL of an image hosted on SharePoint, the image does not render and a gray box posts instead. I am getting the URL of the SharePoint hosted image using the Copy link feature in SharePoint.
How can I get the SharePoint hosted image to work properly?
Hi @katiesdev ,
This is not possible to happen because the sp image link is not public, which means there would be permission issue when you insert the image link directly into teams message and it will show you a gray box as expected.
However, you may consider the "Post card in a chat or channel" action to do this, which is the adaptive car way.
If you are interested in this way, you can directly refer to here: Send image from SP library as a teams message - Power Platform Community (microsoft.com)
Please be noted that the last action is now renamed wtih "Post card in a chat or channel".
Hope this can help.
BR,
Hen Wang