I'm trying to send an email with an embedded image that i get from sharepoint library. The problem is that i tried embed it using CID and base64 code and it's not working:
I made the next configuration in the Send Mail action:
When i use aditional parameters in Attachments section(because i need the ContenID), it gave an error(i tried many combinations of parameters). And when i left only two parameters (Name and ContentBytes) it sent correctly the attachment but it not show embedded (because i can not define the ContentID). I tried using the same name of the file as CID, but it did not work.
When i tried using a base64 string from the image (as shown below):
Using the next Expression:
When i viewed the execution it shows everything fine:
But in the email in the inbox is removed the base64 code and it's not showing nothing:
Please can you help me to solve the problem.?
Thanks in advance.
Could you please share a full a screenshot of your flow's configuration?
Do mean to embed Image into Email Body?
The v-micsh-msft has solved the similar problem, please check the following thread as a reference:
I have made a test and the issue is confirmed on my side. I afraid that embeding a image from a SharePoint library is not supported in Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:
Hi @v-xida-msft, thanks for your reply. The configuration of the flow is the next:
As you see in the flow i get the image from a sharepoint library an embed it using 64basecode string in the body of the email:
I read the post you mentioned (from v-micsh-msft), when i tested using small picture (2KB) like in the example, it worked(as i show below):
The 64basecode string it's ok:
But when i tried with a bigger picture (46KB), it did not work. The flow execution showed the base64code of the image:
But when the emal arrived the 64basecode of the image is not there (as i show in the image below), the img tag it's empty, like if it was removed::
I think the problem it's with the flow or maybe the Exchange server, because with an small image it´s working
Hope your comments.
This is crazy. Can we please get a non-hack, standardized method for insertingimages to Email Body in Flow? Unless I'm missing a new standard, this has been a longstanding issue.
Use cases waiting on this functionality:
- Add images from a Sharepoint Image library to an HTML email body
- Add images from an Azure Maps API call to an HTML email body
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!