Create PDF From Print Context & Email That PDF To Myself

Hi,

I have a workflow process that grabs data from a folder capture, maps it, creates the the PDF and outputs it to a folder. I’m trying to, in the same process, email that PDF to me using a email context from a template.

I tried using the method described here and added a script to my email context in the template.

results.append(“<link rel=‘related’ href=‘file:///c:/spool/filename.pdf’>”);

First issue is that the PDF does not attached, so I’m doing something wrong there. Secondly when I add the Create Email Content to the process it sends the email multiple times because of the original data captured in the beginning of the process.

Any help will be appreciated.

Regards

S

Try with an uppercase C in the href.

Erik

Hi Erik,

After going into the script to make the change you suggested I noticed I misspelled head in the scripts selector. So upper or lower does not matter. Thanks for the help though.

Any ideas about the workflow sending the email multiple times?

Regards,

S

We plan to implement a dialog to specify attachments, including scripting commands (prevents you from misspelling head :). That should simplify things.

No idea on the workflow without seeing it :wink:

Erik

Here is a screen. After output PDF is created it is sent to the folder that the href grabs for the email.