cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Problem with insert <img> tag in Send an email (V2)

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: 

  • Insert the tag <img src="Link" /> directly in the body
  • Initialize variables and Compose and put there the link of the source like that --> <img src="Name-VARIABLE">

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.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.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!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

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!

 

 

View solution in original post

14 REPLIES 14
Community Support
Community Support

 

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:

93.PNG

Code view:

94.PNG

 

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.

95.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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.

 

Anonymous
Not applicable

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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!

 

 

View solution in original post

Anonymous
Not applicable

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:

https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createlink?view=odsp-graph-online#remarks

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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 thumbnailAction Get file thumbnail

Content emailContent 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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello @v-bacao-msft,

I found the option and as you can see and it's set to never expire (I attached a screenshot). 

ExpireDaysSharePoint.png

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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: 

https://www.youtube.com/watch?v=OsEadAck3GI

https://www.youtube.com/watch?v=viwUxPmFarY

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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!

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (3,202)