cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bwan
Regular Visitor

Saving embedded photos in email to folder in OneDrive

Hi,

 

I receive emails with photos embedded in the body of the email, and often times it is a lot of photos. This occurs primarily because when you use iOS to attach photos to emails they show up in the body and that is how our users send me photos.

 

I created a flow to save these embedded photos to a folder within OneDrive. The issue is that when the photos save, all their names (since there is no given attachment name), just say "Image". So what ends up happening is that a new file with the same name "Image" replaces the current one already saved in the folder. Is there a way around this? When I use Attachment ID instead of Attachment name, it gives me a random ID but the file then becomes just a "file" and no longer a jpeg which then has issues opening up.

 

Flow:

bwan_0-1664990294526.png

bwan_1-1664990330454.png

 

Here is what happens when I use Attachment ID instead of Attachment Name:

bwan_2-1664990469967.png

 

1 REPLY 1
ChristianAbata
Super User
Super User

hi @bwan  don't use get attachment, just use the properties from the trigger

 

ChristianAbata_0-1665014407553.png

 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,645)