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 / Alert when a folder is...
Power Automate
Unanswered

Alert when a folder is not updated

(0) ShareShare
ReportReport
Posted on by

Hello all.

 

I have a simple flow that adds a file (create) when an email with an attachment arrives to my inbox.

 

image.png

 

This emails are sent daily, so every attachment has a new name, since the date is added to the file name.

 

image.png

 

What I need is to set an alarm or notification if the folder is not updated, meaning the email failed to arrive with the attachment.

 

Any ideas??

 

thx!!!

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    AS long as you know what the base of the file name is you could do this by creating a Flow triggered by a daily recurrence.  Then build the name of the file in a variable and try to retrieve the properties of the file.  If it is successsful then the file arrived.  If not, (Status code = 404) then you can send your alert.

  • Community Power Platform Member Profile Picture
    on at

    Thanks!

     

    I am pretty new on this. I got stuck here.

     

    image.png

    Where can build the variable with file name? 

  • RezaDorrani Profile Picture
    12,143 on at

    Hi @Anonymous 

     

    You can also check on a scheduled flow which runs daily to check if any file has been created in last 24 hours

     

    If no file created -> no attachment was added

    and you can notify yourself

     

    odata query

    Created ge 'addDays(utcNow(),-1)'

    where addDays(utcNow(),-1) is an expression

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    For the file name you can build using an Initialize Variable action and a formula that concatentates the basefilename with a custom formatted date using Now().

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    If the files in the specified folder will contain the date of the day, please refer to the following method to achieve your needs.

    • Use List folder action to get the files in the specified folder.
    • Use Filter array to filter files with the current date in the file name.
    • Use length() function to determine if such a file exists, and if it does not exist, send a notification.

    Image reference:

    126.PNG

    Hope it helps.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    Thanks! it worked, but how do I do to stop the "Apply to each". since it sending me and email for each of the old files in the folder. 

  • Gordon Profile Picture
    2 on at

    am using the below to check if a file has been created in a folder. If it hasn't been done someone's forgotten and we need an alert. Listing the folder, and the two filters give the results I'd expect. The FilterTimes uses Addhours/UTCNow(-ve) so only files newer than the threshold make it through.

    However, if there are no new files, the output of the last filter is Body[] as expected, but when this get passed to the condition, I'm just getting the input of that being { "expressionResult": false}

    I think I'm getting my brackets and commas wrong in the condition, or have I named the array incorrectly?

    Screenshot 2021-02-19 163019.png

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard