AttachmentByName tag

Use this tag to insert attachments into an email message.

Synopsis

AttachmentByName::<attFieldName>{::<Pattern>}

Options and arguments

<attFieldName>
The name of a field that contains attachments.
<Pattern>
An optional regular expression that identifies which attachments to add. Pattern matching is based on file names, not the paths. If no pattern is entered, all attachments are added. See Regular expressions meta characters for more information on regular expressions.
Note: If the target schema uses a version of the HCL Compass attachments package that uses an external storage model, this feature will not work. However, it is possible to include a link to the external storage site.

Example

This example uses AttachmentByName to identify all attachments in the Attachments field whose filename starts with "Spec". Then, those attachments are attached to an email message:
#@AttachmentByName::Attachments::^Spec.*@#