2018.2

Table Of Contents
Dynamic attachments:creating file names based on data fields
The new Dynamic Attachment wizard lets you concatenate this value with the base location
and/or file extension to construct the path. Dynamic Attachment scripts are created via theNew
option on the toolbar of theScripts panel.
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.
Page 458