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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create flow to Monitor...
Power Automate
Answered

Create flow to Monitor folder for New files and then send list of new files

(0) ShareShare
ReportReport
Posted on by 13

Hi all,

 

I am trying to create a flow wherein PowerAutomate monitors a Sharepoint folder every 15 minutes and then send a list of all new files within that 15 minutes window. The condition should go something like this:

  • TRUE: If new files are created in the folder within 15minutes then it will create a table of the new files and then post it in a channel
  • FALSE: If no new files are created in the folder within 15minutes then it will post a warning in the channel saying no new files have been created in the last 15minutes

I pieced together the flow from reading various articles and posts here but I am hitting a snag as my Flow always return a FALSE even though I have added some files into the folder during my testing (in my tests i used a 2 minutes interval but once I put the flow to production it should run every 15minutes).

 

I checked the logs of the runs and I have a feeling that it has something to do with my Filter Query:

Created ge '@{addMinutes(utcNow(),-2,'yyyy-MM-ddT00:00:00Z')}' and Created lt '@{addMinutes(utcNow(),0,'yyyy-MM-ddT00:00:00Z')}'

 

it always return the below value:

Created ge '2023-10-24T00:00:00Z' and Created lt '2023-10-24T00:00:00Z'

 

I have attached a screenshot of my flow for reference. Thanks in advance for the help! 🙂

 

File Monitoring.png

Categories:
I have the same question (0)
  • Verified answer
    JonDoesFlow Profile Picture
    1,304 on at

    Hey @BornSomeday @not sure you need this in your expression:

     

    yyyy-MM-ddT00:00:00Z

     

    you just need the addminutes(utcnow(),-2)

     

    if you then need to format the date time, wrap above with that:

     

    formatdatetime(addminutes(utcnow(),-2),’yyyy-MM-ddThh:mm:ssZ’)

     



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


    If I have helped you with an answer, please accept this post as a solution and thumbs up my reply. Thanks !

    Blog - JonDoesFlow
    Twitter - JonDoesFlow
    YouTube - JonDoesFlow

  • BornSomeday Profile Picture
    13 on at

    wow...that worked! thanks for the help! 🙂

  • JonDoesFlow Profile Picture
    1,304 on at

    My pleasure @BornSomeday 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard