Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Saving embedded email images to SharePoint list

(0) ShareShare
ReportReport
Posted on by 1,597 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!

 

  • sudosaurus Profile Picture
    1,597 Super User 2024 Season 1 on at
    Re: Saving embedded email images to SharePoint list

    @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

     

  • v-jefferni Profile Picture
    on at
    Re: Saving embedded email images to SharePoint list

    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,597 Super User 2024 Season 1 on at
    Re: Saving embedded email images to SharePoint list

    @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
    Re: Saving embedded email images to SharePoint list

    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,597 Super User 2024 Season 1 on at
    Re: Saving embedded email images to SharePoint list

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

  • v-jefferni Profile Picture
    on at
    Re: Saving embedded email images to SharePoint list

    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,

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492