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 / Automatically send ema...
Power Automate
Answered

Automatically send email when last modified date on a file is older than 6 months

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello community!

 

I need help putting together a flow, I am just starting to learn how to use flows and would appreciate some walk through on putting this process together. 

 

Objective

There is a list of files that need to be updated by the file owner every 6 months. Currently we are manually having to remember to email the team leader that is responsible for revising the file that is a flowchart of the teams business operations.

 

What the Flow needs to do is: When it detects that one of the files on this list has a Last Revised date that is older than 6 months, it will Sent an email to the Owner of that file and include the attachment or link to the file. Once this Flow is implemented, each file will have a different owner, so the Flow will need be able to to properly send the correct file to the correct owners email when it detects that they haven't revised in after 6 months. We will manually be updating the Last Revised date.

 

Below is a picture of the List page I currently have setup, but I would need assistance with putting the flow together. 

 

Capture5.PNG

 

Thank you!

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    You can create a Flow with recurrence trigger to make it runs every day, these are steps how to create it:

     

    Step 1: Create a recurrence trigger runs every day.

    Step 2: Initialize an array variable to store these attachments.

    Step 3: Get items of the SharePoint list.

    Annotation 2019-11-12 145534.png

    Step 4: Use the Apply to each action to loop through each item, if its modified date is less than (today - 180 days), Get its attachments.

    Step 5: Before setting the attachments variable, empty it by using null. Then get attachment content, use the Append to array variable. 

    "ContentBytes" : body('Get_attachment_content')['$content']

    Annotation 2019-11-12 145636.png

     

    Annotation 2019-11-12 145741.png

     Step 6: Send an email, click the button red circle marked, and put the Attachments variable into.

    Annotation 2019-11-12 145807.png

    Please have a try, if you have any problems, please let me know.

     

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-litu-msft 

     

    Thank you so much for all this content, its amazing and really useful! So I was able to recreate most of it, the only part that I am unsure of what to do is for Step 5 on the "Get Attachment Content", what Id and File Identifier should I use to make sure it works properly?

     

    Thanks!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-litu-msft 

     

    I got the flow working, I just added ID and Id to the Get attachment Content. I also changed the To: on the email from Created By person to Owner Email and it works like a champ! Thanks for all the help, it works just like I needed it to!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How would it be possible for me to make this work but with a Library instead of a list? I got it to work perfectly with a List, but have all the files in a library. Thanks!

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Please use the Get files action of SharePoint connector to get these files in a library.

     

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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard