email alert containing list of problem files

Post Reply
MrFox
Newbie
Posts: 9
Joined: Mon Mar 29, 2021 4:19 pm

email alert containing list of problem files

Post by MrFox » Thu Oct 07, 2021 3:39 am

I have a flow set up where any problem jobs send out an email alert to the user. Within the body of the email is the problem jobs file name [job.name].

If 50 files are submitted and 25 of them fail Switch will send out 25x individual alert emails. Is it at all possible to combine the filenames of all problem jobs into the body of a single email? Perhaps having it send every couple of minutes? Basically so the user receives one email with a list of all the problem files.

Any help greatly appreciated

freddyp
Advanced member
Posts: 655
Joined: Thu Feb 09, 2012 3:53 pm

Re: email alert containing list of problem files

Post by freddyp » Thu Oct 07, 2021 10:36 am

You could add an outgoing connection to Problem jobs and Assemble jobs after x minutes and then send a mail.

Another approach is to use this app: https://www.enfocus.com/en/appstore/pro ... g-messages

In both cases you would then of course not send mails when a job hits Problem jobs.

MrFox
Newbie
Posts: 9
Joined: Mon Mar 29, 2021 4:19 pm

Re: email alert containing list of problem files

Post by MrFox » Tue Oct 12, 2021 9:08 pm

freddyp wrote:
Thu Oct 07, 2021 10:36 am
You could add an outgoing connection to Problem jobs and Assemble jobs after x minutes and then send a mail.

If I assemble all the jobs after x minutes surely the result will be a single job named after the first job? What I'm after is a single file containing all the names of all the failed jobs, or a simple list of all failed filenames contained within 1 email.

The almost unanimous silence suggests this isn't a thing. :cry:

Cheers for the suggestions

jan_suhr
Advanced member
Posts: 461
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: email alert containing list of problem files

Post by jan_suhr » Tue Oct 12, 2021 9:39 pm

With the app Get Message that Freddy suggested in combination with this app
https://www.enfocus.com/en/appstore/pro ... m-template
You can get what you want.
Here is how that app works.
https://youtu.be/cG21tCFDzpM
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps

freddyp
Advanced member
Posts: 655
Joined: Thu Feb 09, 2012 3:53 pm

Re: email alert containing list of problem files

Post by freddyp » Wed Oct 13, 2021 9:42 am

Assembling results in 1 job, but there is the variable [Job.NestedName]: that gives you a list of all the files in the folder. And when you process the result with the "Separator" <br> in an HTML mail you will get as many lines as there are files, or perhaps even better with "Prefix-Suffix" you can make it into a nice list (the prefix is <li>, the suffix </li>. Embed the variable inside <ul></ul> in the mail template and you will get a nice unordered list in the mail.

Post Reply