Hi,
I have a workflow that picks up exports and runs them through our AQC machine which in turn generates a PDF report. I would like to add an additional command to the workflow where it will monitor the folder and email the report.
Ideally an operator would be able to add their initials to the export e.g _IG.mov and the email would send it to an email address we associated with _IG.mov.
Is this possible?
Email PDF based on a filename
Re: Email PDF based on a filename
Hi Ian,
welcome to the forum and thanks for using FFAStrans!
It would be good to have some more understanding about how things work for you.
So it is like the pdf is written back into the same folder where the .mov resides, correct? And a user who wants to have the pdf by email would rename the mov and this triggers the email sending?
If so, you'd need to have a second workflow that watches for the renamed files. The "Accept" filter of the monitor processor of the second workflow would need to filter e.g. _??.* which would cause it to pick up only files that end with an underscore and two characters before the "dot".
From there you use the populate vars processor in order to find out the "two characters at the end of filename" using regex , e.g. $regext("%s_source%",'_(..)\.*$') and store this in a user_variable and use it for looking up the email in the Shortcut_To_Email map.
How do you want the email resolving to work, you want to look up activedirectory or something or you want to provide an extra configuration file?
welcome to the forum and thanks for using FFAStrans!
It would be good to have some more understanding about how things work for you.
So it is like the pdf is written back into the same folder where the .mov resides, correct? And a user who wants to have the pdf by email would rename the mov and this triggers the email sending?
If so, you'd need to have a second workflow that watches for the renamed files. The "Accept" filter of the monitor processor of the second workflow would need to filter e.g. _??.* which would cause it to pick up only files that end with an underscore and two characters before the "dot".
From there you use the populate vars processor in order to find out the "two characters at the end of filename" using regex , e.g. $regext("%s_source%",'_(..)\.*$') and store this in a user_variable and use it for looking up the email in the Shortcut_To_Email map.
How do you want the email resolving to work, you want to look up activedirectory or something or you want to provide an extra configuration file?
emcodem, wrapping since 2009 you got the rhyme?