web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

7 year retention

(2) ShareShare
ReportReport
Posted on by
Good afternoon,
We are working on an automation process in Microsoft 365 to manage invoice retention and email cleanup.
Our goal is to:
1. Retrieve invoice attachments from Outlook emails dating back up to 7 years.
2. Store those invoice attachments in a SharePoint site for retention purposes.
3. Run a Power Automate flow that deletes emails older than 1 year after the attachments have been successfully collected and stored.
I have created a Power Automate flow to begin this process; however, I am encountering an issue when attempting to retrieve emails across the full 7-year timeframe. The flow either fails to return all emails or appears to time out during execution.
We are looking for guidance on the best approach to:
* Extract invoice attachments from Outlook emails covering a 7-year retention period.
* Avoid timeouts or limitations when processing such a large volume of email.
* Ensure all attachments are successfully stored in SharePoint before deleting emails older than 1 year.
Could you please advise on any recommended Microsoft 365, Outlook, Exchange Online, or Power Automate best practices for handling this type of large-scale email and attachment retention process?
Thank you for your assistance.
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    16,298 Super User 2026 Season 1 on at
    Hi there! 
     
    I'll make this easy for you: power automate is not the solution to do this, I wouldn't invest anymore time attempting if this was my project. 
     
    You have two best alternative solutions: 
     
    Microsoft Graph
     
    Microsoft Purview
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • VI-07051616-0 Profile Picture
    15 on at
    As already suggested, use the Graph requests and pagination in your flow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard