Send embedded image in email using Power Automate

HK Power Platform Admin
2 min readJul 11, 2024

The key points to send an email with embedded image are:

  1. Attach the image file(s) as attachment to the email
  2. In the email body add html code:
<img border="0" alt="myImageName" src="cid:myImage.png">

Here is how to embed images in an email using Power Automate:

  1. The image files I used are stored in SharePoint library. Use “Get file content using path” action.
  2. The target file can be converted to hex string. You can get the value by @{body(‘Get_file_content_using_path’)}
  3. If you have multiple images, create an array variable and append in below format:

4. Create an array variable and insert the HTML content as below sample. Filename should be the exact name of image file. Notice you need to add “cid:” in front of filename.

5. In the Send an email action, insert the array variable in the “Attachments” section. Add the HTML content in the email body.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

HK Power Platform Admin
HK Power Platform Admin

Written by HK Power Platform Admin

Cannot find SharePoint job. Switched to Power Platform.

No responses yet

Recommended from Medium

Lists

See more recommendations