cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Flow to run once per day to archive emails based on date, read status and flag status

I would like to set up a flow to auto-archive my email once per day. I would like it to only archive items that have been read and are not flagged. I also want to archive items based on year - 2019 in separate folder from 2020 etc.

 

I set up a Recurrence but am running into problems trying to use a flag status as a condition and I'm not sure if I am doing the Received Date and Time correctly. Does anyone already have something like this going? (I can't use the auto-archive feature of Outlook because I'm on an exchange server)

4 REPLIES 4
Highlighted
Super User
Super User

Re: Flow to run once per day to archive emails based on date, read status and flag status

I just tested your parameters and there a few limitations that seem to be popping up.

 

First, you are limited to only retrieving up to 25 emails at a time using the "Get Emails" action under "Office 365". 

 

Second, I was able to retrieve emails user the "Search Query" of "received:this year" to pull the current year's emails. But, again, limited to 25 emails as a max.

 

Third, I noticed that the Flag status doesn't seem to be supported in the "Search Query". I was using the query of "followupflag:unflagged".

Highlighted
Frequent Visitor

Re: Flow to run once per day to archive emails based on date, read status and flag status

Yes, I know I'm limited to 25 which is unfortunate. I figure if I can overcome the flag status problem then I could have the flow run multiple times each night. 

 

Is there a better way to do this than using Flow? I just can't figure out how to make the flag status a supported function in there.

Highlighted
Super User
Super User

Re: Flow to run once per day to archive emails based on date, read status and flag status

I know this is off-topic, but have you looked into Office 365/Exchange policies to govern archiving of emails? 

 

Also, I know you can set up your local Outlook with auto-archive rules: https://support.office.com/en-us/article/archive-older-items-automatically-25f44f07-9b80-4107-841c-4...

Highlighted
Community Support
Community Support

Re: Flow to run once per day to archive emails based on date, read status and flag status

Hi @kohrt ,

 

Have your problem been solved?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Alice

 

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

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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 (3,484)