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

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