cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dgillespie
Advocate II
Advocate II

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
rsaikrishna
Community Champion
Community Champion

@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.

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."

@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
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,112)