Hi,
I am sending an Image on the Teams to the individual user through power automate. but the image is not displaying on the team.
Below step of applying in flow.
1. Get file content using the path
2. Storing file content in one variable using "<img src="data:image/jpeg;base64,@{body('Get_file_content_using_path')['body']['$content']} " width="300" height="300" alt="My Image">"
3. Using Team chat to send messages.
4. Using 'Post message in chat or channel' to send message. using html message bode to add variable content like below variable
The "Teammessageimage.Png" file showing output. image is not visible.
Can any help me on this issue?
Regards,
Lalit Kadam
It Works!!!
TSM
Hi Cheng,
I also had this issue and found your solution. How would you add multiple images to the outputs? I have a flow that I would like to add multiple images in a message to the compose section. Is this only compatible with one image?
Hi @Anonymous ,
I also tried some methods, it seems to get the content of the file to send the picture, Teams can't recognize it.
Finally I found a way to use sharepoint to store thumbnails provided by pictures. which will provide the URL
Here is result:
Please check out this thread:
Solved: Post image to private teams channel - Power Platform Community (microsoft.com)
Best Regards
Cheng Feng
Hi Cheng,
We tried to reduce size of the Image but it is still not working.
Can you please give more details?
Regards,
Lalit Kadam
Hi @Anonymous ,
Please try to modify like this:
Storing file content in one variable using
(Add some supplements here: Some restrictions on the Teams connector)
Please note that the message size should not exceed 28KB
Here is a link for your reference:
Microsoft Teams - Connectors | Microsoft Learn
Best Regards
Cheng Feng
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional