2019.1

Table Of Contents
The Dynamic Attachment Script Wizard lets you add a different attachment for each email
recipient. It composes one file name (including the path) based on the value of one or more
data fields.
1.
On the Scripts pane at the bottom left, click the downward pointing arrow next to the New
button; then select Email Scripts > Dynamic Attachment.
2.
A new script called Attachments has appeared in the list. Double-click to open it.
3.
Choose an Email section from the Section drop-down list.
4. Fill in the different parts of which the file name is composed:
l
Prefix. The first prefix contains the base path (or at least the first, static part of the
path). For example:C:\Attachments\, C:/Attachments/, or
file:///C:/Attachments/.
l
Data field/s. The selected data field/s will be evaluated. If a data field is empty, the
entire row is skipped. Otherwise the prefix, data field value and suffix are added to
the path/file name.
l
Suffix. The suffix on the last used row should contain the file extension, including
the dot (for example.pdf).
For resources inside the template, refer to the folder in the Resources, e.g.
'images/file.extension' , or 'fonts/myfont.otf', etc.
For a file on disk, you can use the file protocol, for example:
file:///c:/somefolder/attachments/INV2018.246.pdf (which equals
file://localhost/c:/somefolder/attachments/INV2018.246.pdf; if the host is"localhost", it can
be omitted).
For a remote file, give the URL (e.g.
http://www.mysite.com/somefolder/attachments/INV2019-246.pdf or
'http://localhost:8080/pod/v1/deliverynotes/{8FCEC8BC-72E8-486B-A206-
516BF10E21F6}').
Note
For attachment names, it is recommended to use only US-ASCII characters. Other
characters may not be supported by all email servers and clients.
5. The attachment's name in the email will be the part of the path that comes after the last '/'.
When there are no forward slashes in the path, the full path is used.
Page 177