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 Platform Community / Forums / Power Automate / Is there a way to set ...
Power Automate
Unanswered

Is there a way to set up a notification for bulk expiring documents?

(2) ShareShare
ReportReport
Posted on by 8
Hi all,
I am an administrator for a few SharePoint sites at my company. I'm managing those document libraries. My company just set in motion a 3-year retention rule. Anything older than 3 years would/will roll off. I have set up views to monitor those documents that are approaching the 3 years retention period. I manually check these libraries every week. So, to automate the process, I read in another article that I can use Power Automate to send bulk notifications in my SharePoint Document Libraries. Sadly, I have not been successful in my endeavors!
 
 
 
Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,079 on at
    What's your exact problem? Did you try to create a flow as described in the article you mentioned?
     

    You can modify this flow according your needs: https://www.ivasoft.com/files/PasswordExpirationNotfication5.zip

  • MM-06062329-0 Profile Picture
    8 on at
    Hi,
    I am fairly new to Power Automate. That said, I want to 'automate' via an email notification if/when one of my libraries in danger of dropping off and being deleted. I tried to follow the recipe given in the prior article noted below. I can't get past step #3.
     
     At your leisure, would you review below.
     
    Thanks
     
     
    ========================================================================
     

    Is there a way to set up a notification for bulk expiring documents? - Microsoft Community

     

    Yes, you can set up notifications for expiring documents in SharePoint Online. While there isn't a built-in feature for bulk notifications specifically for expiring documents, you can achieve this by creating a Power Automate flow. Here’s a general approach you can follow:

    1. Create a Scheduled Flow: Set it to run on the first of each month.

    2. Get Items from Your Document Library: Use the "Get items" action to retrieve documents that are expiring in the next two months.

    3. Filter Documents: Apply a filter to check the expiration dates of your documents.

    4. Send Notification: Use the "Send an email" action to compile and send the list of expiring documents.

     

    I found the detailed steps to set up such a Power Automate flow for your reference. However, if this one doesn't work as expected, kindly contact Power Automate community where might have more professional suggestions. Here is the entrance of Microsoft Power Platform Community Forum Thread.

    Step 1: Access Power Automate

    1. Go to Power Automate and log in with your Microsoft account.

    Step 2: Create a New Flow

    1. Click on “Create” in the left navigation pane.

    2. Choose “Scheduled cloud flow.”

    3. Name your flow (e.g., "Monthly Expiring Documents Notification").

    4. Set the flow to run once a month (e.g., on the 1st day of the month) and click “Create.”

    Step 3: Get Items from SharePoint

    1. Click on “+ New step.”

    2. Search for and select the “SharePoint” connector.

    3. Choose the action “Get items.”

    4. Fill in the details:

      • Site Address: Select your SharePoint site.

      • List Name: Choose the document library you are managing.

    Step 4: Filter Expiring Documents

    1. Click on “+ New step.”

    2. Search for “Filter array” and select it.

    3. In the From field, select the value from the previous step (it should show the list of items).

    4. Set up the filtering condition:

      • For the first field, choose the column that holds the expiration date.

      • Choose “is greater than or equal to” and set the value to utcNow().

      • Add another condition using “Add condition”:

        • For this field, choose the same expiration date column.

        • Choose “is less than or equal to” and set the value to addDays(utcNow(), 60).

    Step 5: Compose the Notification Email

    1. Click on “+ New step.”

    2. Search for “Compose” and select it.

    3. In the Inputs field, create a message to summarize the documents. Use the outputs from Filter array to list the document names and expiration dates.

    Step 6: Send the Email

    1. Click on “+ New step.”

    2. Search for and select the “Send an email (V2)” action.

    3. Fill in the details:

      • To: Your email address.

      • Subject: Something like "Monthly Notification: Expiring Documents."

      • Body: Use the output from the Compose step to include the list of expiring documents.

    Step 7: Save and Test Your Flow

    1. Click “Save” at the bottom of the screen.

    2. You can test the flow by clicking on “Test” in the top right corner. Follow the prompts to run a test.

    Step 8: Monitor Your Flow

    You can check the flow’s run history to see if it works correctly and troubleshoot any issues.

    If you have any questions or need further assistance, feel free to ask!

  • MM-06062329-0 Profile Picture
    8 on at
    Hello,
    I am following the basic steps cited below and I get stuck on:
     

    Step 3: Get Items from SharePoint

    1. Click on “+ New step.”

    As I do not see that anywhere on Power Automate or SharePoint.

    I am in process of taking a training class on "Getting Started with Microsoft Power Automate (PL-100)" to see how all of this comes together.

    Thank you for sharing your information on creating flows.

     

     

  • David_MA Profile Picture
    14,056 Super User 2026 Season 1 on at
    Instead of using a filter, I would do this instead:
    1. Make sure that the date field you are basing the expiration date on is indexed in your library. If not, you will have issues starting once the library contains 5,000 files.
    2. In the Get files action, use a filter query there as it is more efficient than using a filter action afterward, since it will limit how many items are returned in the Get files action. If you use a filter query, it needs to get everything and then reduce what has been returned through the filter.
    3. For the filter query, you would use something like this, substituting Created with the internal name of the date field that you use for tracking:
      1.  Created le '@{startOfDay(addDays(utcNow(), -1095), 'yyyy-MM-dd')}'
    4. Then use an Apply to each to send a notification for each item returned.
     
    If you have a lot of files, you may need to turn on pagination in the Get items action. By default, this will only return the first 100 items unless you turn this on and specify how many items to return.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 523

#2
Valantis Profile Picture

Valantis 318

#3
David_MA Profile Picture

David_MA 235 Super User 2026 Season 1

Last 30 days Overall leaderboard