cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Saving email attachments in OneDrive Retroactively

I know the Save Office 365 email attachments to OneDrive for Business template flow works great on new, incoming email from the point you create the flow.  I would also like to create a flow that can:

  1. look at my inbox and subfolders and find any email with attachments
  2. save those attachments to OneDrive (Email Attachments from Flow folder is fine)

Is it possible to make this flow?  I haven't found a trigger that "inspects my mailbox."

 

Thank you.

3 REPLIES 3
Highlighted
Super User II
Super User II

@dgillespie 

 

You may need to create a separate flow with a trigger "When an email is flagged (v3)".

https://docs.microsoft.com/en-us/connectors/office365/#when-an-email-is-flagged-(v3)

 

5.JPG

Create an instant flow which has a trigger "when an email is flagged (V3)". Then, add the action to save the attachment to OneDrive.

 

For new email, you can use existing flow with trigger "When a new email arrives".

 

Note: you may need to flag all the existing emails. Flag small set of email at a time. Otherwise, you may run into throttling as well.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
Highlighted

Thanks for the reply @rsaikrishna - however, we are talking about thousands of emails and the process of flagging them all is unrealistic.  I wonder if there is a way to make the trigger something like "look at my mailbox."

Highlighted

@dgillespie 

 

If the email box contains thousands of emails, I do not prefer using Microsoft Power Automate, to save attachments for existing emails. Power Automate will consume thousands of API calls which will be very expensive to the company and also to the tenant. Keeping the throttling limits in mind, I recommend using Power Shell script which can connect to Outlook account and process all the emails and save all the attachments in the local hard disk. 

 

Here is a reference articles to access outlook using Power Shell:

https://stackoverflow.com/questions/37038133/can-i-save-an-email-attachment-from-office-365-to-a-fil...

https://techcommunity.microsoft.com/t5/exchange/need-an-example-powershell-script-to-get-attachments...

https://aaedla.wordpress.com/2019/02/07/download-email-attachments-from-office-365-using-powershell-...

 

I haven't tried but many users opted this route. Please check above blogs/forum posts.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (13,931)