cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dybarna
Level: Powered On

Alert when a folder is not updated

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!!!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Alert when a folder is not updated

 

Hi @Dybarna ,

 

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 Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Highlighted
Dual Super User
Dual Super User

Re: Alert when a folder is not updated

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Dybarna
Level: Powered On

Re: Alert when a folder is not updated

Thanks!

 

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

 

image.png

Where can build the variable with file name? 

Dual Super User
Dual Super User

Re: Alert when a folder is not updated

Hi @Dybarna 

 

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

Dual Super User
Dual Super User

Re: Alert when a folder is not updated

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().



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: Alert when a folder is not updated

 

Hi @Dybarna ,

 

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 Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Dybarna
Level: Powered On

Re: Alert when a folder is not updated

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. 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,503)