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.
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:
-
Create a Scheduled Flow: Set it to run on the first of each month.
-
Get Items from Your Document Library: Use the "Get items" action to retrieve documents that are expiring in the next two months.
-
Filter Documents: Apply a filter to check the expiration dates of your documents.
-
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
-
Go to Power Automate and log in with your Microsoft account.
Step 2: Create a New Flow
-
Click on “Create” in the left navigation pane.
-
Choose “Scheduled cloud flow.”
-
Name your flow (e.g., "Monthly Expiring Documents Notification").
-
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
-
Click on “+ New step.”
-
Search for and select the “SharePoint” connector.
-
Choose the action “Get items.”
-
Fill in the details:
Step 4: Filter Expiring Documents
-
Click on “+ New step.”
-
Search for “Filter array” and select it.
-
In the From field, select the value from the previous step (it should show the list of items).
-
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
-
Click on “+ New step.”
-
Search for “Compose” and select it.
-
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
-
Click on “+ New step.”
-
Search for and select the “Send an email (V2)” action.
-
Fill in the details:
Step 7: Save and Test Your Flow
-
Click “Save” at the bottom of the screen.
-
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!