cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Download multiple attachments from files already in inbox to onedrive

Hi, I am looking to get specific attachments from same email address to automatically download to onedrive.

 

Eg, each morning I get email with data from same address, this been happening for over a year, want to run a flow to find them and download all the attachments which are already in my outlook inbox, then I can use the normal flow triggered from new email arriving (This part works and new emails with attachments are being moved :).

 

Hope this is clear, thanks in advance

1 REPLY 1
Highlighted
Dual Super User
Dual Super User

Re: Download multiple attachments from files already in inbox to onedrive

Hi!

So, you wanna archive old emails attachments, right?

And, since you already got a flow running for new emails, you already have both:

-the criteria to identify such emails (email address in the FRom), and

-the criteria to identify which attachments to archive

right?

 

Office 365 outlook? Outlook? Gmail?

Do you have such old emails classified in a specific Folder, so this folder stores the emails you need to archive only?

How many emails are we talking about?

 

If you are an Office 365 guy, your goal can be achieved by means of 'Get emails' action block then an Apply to Each to iterate through them. As @Pstork1 usually explains, "that particular action is hard coded to not retrieve any more than 25 emails at a time. But if you move the emails to another folder once you finish processing them then you could run the action again and get the next 25. Repeat until emails are all processed"

Please also not if you mark all of them as unread before executing your flow, you can mark them as read when finished processing current 25 emails, meaning you can grab the next 25 unread.

 

Give me some minutes to find an example, in the meantime can you please answer the questions above?

[EDIT] Found a good example based on Do Until action block so the limit of 25 emails is not a problem

https://powerusers.microsoft.com/t5/Building-Flows/Flow-for-Archiving-Attachments-to-OneDrive/td-p/1...

-Move all your target emails to a dedicated folder, mark all of them unread

-Manually execute a flow

-Do Until, inside it: Get emails (unread) + Apply to each email [ Mark read + Apply to each Attachment [ Create file]]

 

 Do until execution stops when the nr of emails on 'Get emails' output is zero

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (10,616)