2022.1

Table Of Contents
The 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.
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.
Note
Note that an Attachments script creates one single attachment. To add more
attachments, you could either add Attachments scripts, or click the Expand button
and edit the script.
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 any other file, give a valid URL.
o
Use the file protocol for a file on disk, 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).
o
For a remote file, you can use the http protocol e.g.
http://www.mysite.com/somefolder/attachments/INV2019-246.pdf or
http://localhost:8080/pod/v1/deliverynotes/{8FCEC8BC-72E8-486B-A206-
516BF10E21F6}.
Page 185