web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Problem with insert tag in Send an email (V2)

(0) ShareShare
ReportReport
Posted on by

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!

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

     

    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 Power Platform Member Profile Picture
    on at

    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/63214

    Of course I followed the steps of the post and still no working for me.

     

  • Community Power Platform Member Profile Picture
    on at

    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.

  • v-bacao-msft Profile Picture
    on at

     

    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,

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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!

     

     

  • Community Power Platform Member Profile Picture
    on at

    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.

  • v-bacao-msft Profile Picture
    on at

     

    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 Power Platform Member Profile Picture
    on at

    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

     

  • v-bacao-msft Profile Picture
    on at

     

    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 Power Platform Member Profile Picture
    on at

    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?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard