Send mail if folder is empty

Post Reply
User avatar
Terkelsen
Advanced member
Posts: 298
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Send mail if folder is empty

Post by Terkelsen »

I'm looking for a way to create a flow, that checks a certain folder once a day and sends an e-mail if the folder is empty.



I assume that I can use the "Time of day Window" and the "Check every (seconds)" to make sure it checks only once a day.



But how can I trigger an e-mail if the folder is empty? Any ideas?
freddyp
Advanced member
Posts: 1022
Joined: Thu Feb 09, 2012 3:53 pm

Send mail if folder is empty

Post by freddyp »

Make a flow with an Inject job. The interesting properties of Inject job are on the outgoing connection. Set it to time of day and set it to pick up a specific job being the folder you want to check. Do not delete it after injection of course and name it after the injection job.



At the specified time the folder will be picked up and then you can test [Job.FileCount] equal to 0 to send a mail.



Freddy
User avatar
Terkelsen
Advanced member
Posts: 298
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Send mail if folder is empty

Post by Terkelsen »

Thank you Freddy for that idea. I'll try it out and let you all know if I can get it working.
User avatar
Terkelsen
Advanced member
Posts: 298
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Send mail if folder is empty

Post by Terkelsen »

Works just fine :-) Thank you!
Post Reply