You can't directly attach the file in the global container to an email. You need a valid path to a file that is accessible to the user. This can be done by using a $Path variable that contains the path to that file.
Step 1: Either use Save As PDF to generate the PDF, using a a $Path variable to name the file and specify the location to where it is saved or use Export Field Contents with a $Path variable to export the contents of a container field containing the PDF to a location and file name specified by the $Path variable.
Step 2: In the Send Mail step, click the check box for attaching files and type in the exact name of your path variable. Do not enclose it in quotes.
Here's a thread on using a $Path variable with Save As PDF: Found Sets to PDF with unique file names
Here's a thread where you can learn about $Path variables, container fields, file paths and script steps that can use a $Path variable: Exploring the use of a $Path Variable in Scripts
that worked great. thanks.
only thing, i inserted a PDF into the container field. i then export it and it isnt a PDF anymore. just a empty file but when i double click it, it opens as a pdf.
i tried saving as a pdf, but it saves the whole page and not the contents in the container.
i just sent that "empty" file to a different computer and it doesnt open. so this is an issue.
is there a way to export field contents as a PDF?
Make sure that your file name for the exported file has the .PDF file extension.
hey Phil, how would you put the .PDF extension?
I set the Variable at $$FileName1 then i export as $$EmailAttachment1. when i try to export as $$FileName1.pdf it comes back as an error.
You assign the PDF extension in the expression that assigns the value to the variable. Take a look at the thread on saving as PDF to see an example of this.
like a charm.