cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Save images embedded in email to Onedrive for Business

I receive a fortnightly update email that contains images within the body of the email. I would like to extract all of the images separately into a folder instead of manually having to right click, save image as..... Is this possible?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @Anonymous,

 

I have tested on my side, you could use the following methods to achieve your needs.

Get attachment action not only gets the attachments in the email, it also gets the image contained in the body.

Image reference:

17.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

11 REPLIES 11
v-bacao-msft
Community Support
Community Support

Hi @Anonymous,

 

I have tested on my side, you could use the following methods to achieve your needs.

Get attachment action not only gets the attachments in the email, it also gets the image contained in the body.

Image reference:

17.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

this does not seem to work for embedded images. Which seems to be the prevailing way of my users to send images after making a picture on their phone.

 

Any suggestions how to detect and capture those and store in onedrive?

 

Thank you and regards,

 

Tom

Hi

I stand corrected. The explanation does work. I made a mistake "Has attachments" should be "No", but "Include Attachments" should be "Yes".

Regards

 

Tom

Hello @Tommmertom - 

 

I tried this option, but it doesn't work for me. Can you please help if I overlooked anything.

Tchay
Regular Visitor

Dear all,

I find a way of doing it with 2 Power automate Flow :

1rst Flow : forward the email, and delete_it -> it help to have the Embedded picture in attachment (in my case jpg attachment).

Tchay_0-1644143810499.png

Tchay_0-1644144495121.png

Tchay_1-1644144516438.png

 

 

2nd Flow : download the attachment for the email send

Tchay_2-1644144057728.png

Tchay_3-1644144141929.png

Tchay_7-1644144224422.png

 

 

andyab
Regular Visitor

This almost works for me but not quite. 
I have a shared mailbox to which I received emails containing any manner of embedded or attached images/pdf etc. 

I need the attachments and embedded images to be saved to a location on sharepoint. 
I then need the email moving to another folder. 
Finally I need an email sent to the original sender to confirm we received their attachments. 

I have so far got this working perfectly using a different example to that above except it doesn’t save the embedded photos. I have tried to follow your method and whilst it does save all the images including attachments and embedded ones, I end up sometimes with multiple emails in the inbox which don’t get deleted, and multiple copies of the attachments and images saved in sharepoint. 
There must be a way of getting this to work so it just saves the attachments once, and I don’t end up with multiple emails sat in the inbox. 
Any help appreciated!

Tchay
Regular Visitor

Please share image of your power automate flow to help you.

andyab
Regular Visitor

1st Flow: 

andyab_9-1645046501840.png

 

 
 

2nd Flow:

andyab_12-1645046999209.png

 

 

 

Original Flow that only works on attachments - not embedded photos:

andyab_11-1645046880430.png

 

 

 

 

Anonymous
Not applicable

1st flow :

You should create a condition as subject filter (here does not contain the word RPA)

You should rename the subject of your send email begining with RPA.

TCHAYY_1-1645083106930.png

 

TCHAYY_0-1645083089627.png

TCHAYY_7-1645083533249.png

 

 

 

2nd flow :

You should subject filter your email with email who start with RPA

TCHAYY_8-1645083564908.png

 

TCHAYY_5-1645083383923.png

TCHAYY_6-1645083407261.png

 

 

andyab
Regular Visitor

Many thanks for your help. I will give that a go. 

Running the flows below, (I am not sure how to replicate your condition which only shows one option?),

the result is:

1. the original email enters the inbox. 

2. It is then deleted.

3. The email is replaced with a new email containing 'RPA' in the subject line.

4. No files are saved to Sharepoint.

5. The 2nd email (and multiple copies of if there are more than one embedded item) remains in the inbox.

6. No emails go to the Processed folder.

 

Both flows succeed if there are only embedded pictures in the email, otherwise if there are attachments step 1 fails.

 

I assume my condition is wrong for a start!

 

New Flow (Step 1)

 

andyab_6-1645101732924.png

 

andyab_7-1645101746840.png

 

 

Flow 2:

andyab_9-1645101817401.png

 

 

 

 

 



 

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (4,390)