Hello everyone!
I want to add an image in the body of an email but I can't insert it, I take the photos from Onedrive Business (SharePoint).
I have tried with:
I attach 2 screenshots with something that I saw when you click the HTML icon to write code, once you write the tag <img> the icon turns into grey meaning that there is an error.
Once I write <img> tag the HTML, the icon turns into grey meaning that there is a problem.
When you remove the <img> tag, the HTML icon turns back again into black.
Hope this information is useful, if you have any doubt, please ask me!
Solved! Go to Solution.
Hallo @v-bacao-msft!
First of all thank you for your reply, I have found a temporary solution.
I uploaded the photos in the OneDrive Business and later in flow I used the action of "Get file Thumbnails", then I did <img src="ThumbnailVariable" and when you send the email the images are there!
Hi @Anonymous ,
Because we could not insert image in Editor view, so if you insert <img> tag in email body within Code view, it will not be switched to Editor view.
So this icon will be grey, this is an expected result. Hope that makes sense.
Editor view:
Code view:
For eg, we could insert a hyperlink in Code view and the icon will also be clicked to switch the view to Editor view, because we could insert hyperlink directly in the Editor view.
Best Regards,
Hello @v-bacao-msft !
How can I insert and image in the body of an email?
In this post they do it but it's with Send an email (v1) --> https://powerusers.microsoft.com/t5/General-Power-Automate/insert-picture-outlook-body-message/td-p/...
Of course I followed the steps of the post and still no working for me.
Hello @v-bacao-msft !
I have tried to insert an image from google and it worked, so maybe the problem comes from the OneDriveBusiness and share the link that it's generated.
Hi @Anonymous ,
I think that insert an image in the Email body is a difficult thing through the existing feature in Power Automate.
Although we could get many alternative workarounds in other posts, all of these methods have some problems because of the limitations known by the Office 356 outlook connector.
As you tested, if the pictures you need to insert are from a public resource, the method you use may work, but these pictures can only be viewed in OWA. If it is a desktop client, these pictures may still not view.
Anyway, regarding the question you mentioned at the beginning, hope my statement makes sense. But regarding inserting pictures in the email body, I regret that I may not be able to provide a suitable solution.
You can try to send the picture as an attachment or obtain the share link that directly generates the picture, and then insert the link in the email body to facilitate the user to access the picture.
In addition, please consider submitting your suggestions in the ideas forum to enrich the functions of the Office 365 outlook connector so that we can have more convenient functions to insert pictures in the Email body.
https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas
Best Regards,
Hallo @v-bacao-msft!
First of all thank you for your reply, I have found a temporary solution.
I uploaded the photos in the OneDrive Business and later in flow I used the action of "Get file Thumbnails", then I did <img src="ThumbnailVariable" and when you send the email the images are there!
Hello @v-bacao-msft !
The temporary solution that I found only works for some hours, after past hours when the email is sent the photos are not in the email, do you have any idea why this expires? Maybe to get the Thumbnails produces a link that is only available for a couple of hours.
Hi @Anonymous ,
Please check if there are any policies in your org make this link expires.
Please check this link:
Best Regards,
Hello @v-bacao-msft,
In my case I don't use any API (I attach you 2 screenshots to show you how I did it).
Action Get file thumbnail
Content email
Hi @Anonymous ,
The actions in Power Automate actually call these APIs to implement the corresponding operations. The existence of these actions makes it easier to create HTTP requests.
So I suggest you check whether there is a corresponding policy in the organization that makes these URLs expire.
Hope that makes sense.
Best Regards,
Hello @v-bacao-msft,
I found the option and as you can see and it's set to never expire (I attached a screenshot).
Why in Send an Email V1 you could insert the tag img without any problem and in V2 there is this problem?
Hi @Anonymous ,
I can't find Send an email V1 action, available is Send an email (V2).
Best Regards,
Hallo @v-bacao-msft ,
I attach you some videos links that I found about "Send an Email", I don't know if in these videos they have the same problem that after 24 hours the images are gone.
Links:
Hi @Anonymous ,
Send an email action mentioned in these videos has gone.
The Office 365 outlook connector has been updated before, and the only version currently used is the Send an email (V2) action.
Best Regards,
Hallo @v-bacao-msft ,
I cannot find a way to solve it, it only works for 24 hours.
Please, in further updates consider the feature of adding images in the body of the E-mails.
Thank you so much for your attention!
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
8 | |
5 | |
4 | |
3 | |
3 |