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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / get image from email a...
Power Automate
Unanswered

get image from email and embeded in new email

(2) ShareShare
ReportReport
Posted on by 154

I received email from power bi subscription. Image shows in the body as well as attachment. I need to take that image and embedded in new email. I use When a new email arrives (V3) trigger and  then Get Attachment (V2). I am stuck in the next step: Send email where i need to put image in the body. I can see Content type and Content Id from attachment

<img src=?

Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,028 Super User 2026 Season 1 on at

    Hi @arkkgroup ,

     

    There are two options to embed an image in the Send Email (V2) action, one from OneDrive and one from SharePoint.  The following flow shows both processes, they are similar but configured differently.

     

    Regardless, in your use case, you need to save the image you received into OneDrive or SharePoint and then use the appropriate actions below.

     

    trice602_0-1698352345726.png

     

     

    On the OneDrive side (left side):

     

    Compose action:

     

    dataUri(body('Get_file_content_using_path_2'))
     
    Here's the Send Email action:
     
    trice602_1-1698352489123.png

     

    On the SharePoint side (right side):

     

    Compose action:

     

    @{outputs('Get_file_content_using_path')?['body']['$content']}

     

    Here's the Send Email action:

     

    trice602_2-1698352611205.png

     

    In short, this has been successful for me and works with either OneDrive or SharePoint.

     

     

  • trice602 Profile Picture
    16,028 Super User 2026 Season 1 on at

    Hi @arkkgroup ,

     

    I also found the results from last month.  Please consider marking one or more replies as a solution to help others find it too!  This is a very frequent, FAQ.

     

    trice602_3-1698352900262.png

     

    trice602_4-1698352924801.png

     

     

  • arkkgroup Profile Picture
    154 on at

    i have to use image attached to email What is <img src code for that

  • trice602 Profile Picture
    16,028 Super User 2026 Season 1 on at

    Hi @arkkgroup ,

     

    That's what I am suggesting here. To use the images you received in an email you need to temporarily save it to OneDrive or SharePoint first. Next my example shows you how to add it to an email.

     

     

  • arkkgroup Profile Picture
    154 on at

    is there a way do it on the fly? I cannot get file content from SharePoint due security policies

  • trice602 Profile Picture
    16,028 Super User 2026 Season 1 on at

    OneDrive?

     

     

  • arkkgroup Profile Picture
    154 on at

    same for OneDrive, security policies

  • arkkgroup Profile Picture
    154 on at

    I use Get Attachment
    <img src="data&colon;image/png;base64,@{outputs('Get_Attachment_(V2)')?['body/contentBytes']}" >

    The ISSUE is when use Content Bytes image does not show, instead i see it includes some odd special characters such as � I think problem is with incorrect encoding, Can someone help?

  • arkkgroup Profile Picture
    154 on at

    i am using this and no special characters, but image still not showing

    <img src="data&colon;image/png; body('Get_Attachment_(V2)')?['$content']) " width="100%" height="100%" />

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard