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 / Sharepoint - Send mail...
Power Automate
Answered

Sharepoint - Send mail if no new files added to sharepoint

(0) ShareShare
ReportReport
Posted on by 31

Is it possible to set up a flow where I check a sharepoint folder for new files, based on amount of days since last file.

 

So for example: Check if there has been added any new files to a specific folder in the last 8 days.

If there has don't send email.

If there hasn't send email.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    1) Build a flow with a recurrence trigger to run at whatever interval you want to check for new files

    2) Get all the files in a folder where the created date is greater than AddDays(UTCNow(), -8)

    3) If the array returned has a length of 0 (no files found) send the email.

  • NJessen Profile Picture
    31 on at

    Thank you for your reply!

    This makes sense, however I cannot manage to make it work.

     

    This is my attempt: I can click test but I never seem to get any mail.

     

    I'd like the mail to be sent in case the folder has no files updated in the last 7 days.

    If any file has been updated in the last 7 days do nothing.

     

    flow.png

     

    Sorry for the inconvenience.

  • Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    Your filter query is incorrect in the get files properties only.  It needs to include the name of the field and the operation.  Like this:  Make sure to add the single quotes around the AddDays() function.

    image.png

    You should also have a condition to test the size of the array returned to see if you need to send the email or not.

    image.png

  • NJessen Profile Picture
    31 on at

    Thank you for helping!

     

    I'm now getting an error message.

     

    I've tried posting exactly what you had in filter query in, but I get the same error.

    I've tried all the things I could come up with in the query filed but nothing worked.

    I also tried writing "modified ge 'inserted add days formula' - gave same error

    NJessen_0-1629448112853.png

     

     

     

  • Pstork1 Profile Picture
    69,490 Most Valuable Professional on at

    The error is about the length() statement in the condition.  Re-do that one to get rid of the error.  

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 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard