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 / Saving embedded email ...
Power Automate
Unanswered

Saving embedded email images to SharePoint list

(0) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1

Hello,

 

I know this topic keeps on coming up - Id like to save embedded images in the body of an email to a SharePoint list item.

 

I saw somewhere else that @karas had suggested they had done this:

 

Suddenly I find out that for emails with attachments flow saves embedded images as stand-alone file.

So, I transformed my flow to following:

Export email -> for each attachment - save to list item.

IDK how, but "Export email" action makes MS flow recognize all embedded images as attached files.

https://ideas.powerautomate.com/d365community/idea/09d21571-aca9-4b6d-9614-2737a87ac6c5

 

This is my flow, however I'm unsure what they mean about doing after the 'Export email' action??

 

sudosaurus_0-1680196167108.png


I have used another method where I convert the body to html and use base64 conversion however this is limited to 2mb file sizes.
So Id prefer to get this working another way if even possible?

 

Thanks!

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sudosaurus ,

     

    Based on your description, I have made a simple test for your reference.

     

    This my test email:

    vjefferni_0-1680241204489.png

     

    This is my flow:

    You could use the "Get Attachment" action in outlook to get images and then convert them from Base64 to binary. No 2MB limit found.

    vjefferni_1-1680241204493.png

     

    Or you can use the "Export email" action to save the attachments of the entire email as files, but the file extension should be ".eml".

    vjefferni_2-1680241204494.png

     

    Result:

    vjefferni_3-1680241204522.png

     

    Best regards,

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-jefferni - What was the exact Base64ToBinary expression you used?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sudosaurus ,

     

    Expression:

    base64ToBinary(outputs('Get_Attachment_(V2)')?['body/contentBytes'])

     

    But actually, if use content bytes from get attachment action directly, I can create attachments for the entry as well.

     

    Best regards,

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-jefferni 

    The image doesn't display for me?

     

    sudosaurus_0-1680258479234.png

     

    sudosaurus_1-1680258593191.png

    sudosaurus_2-1680258633837.png

     

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sudosaurus ,

     

    This Email column is a multiple lines of text column. Attachments will be saved in Attachments column.

     

    Best regards,

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-jefferni 

    This is working now thanks!

    I noticed that if I take photos and add them to the email body on my phone, the images don't retain their original filename when being processed by the flow.

     

    The first image is added as image.jpeg however any further embedded images are not added because they're also trying to be added as images.jpeg

     

    Before being sent in my email they're formatted as image_4567.jpg so I'm unsure what to do there??

     

    sudosaurus_0-1680260419362.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard