This mapping saves a base-64 string to a file on disk with the filename configured. The directory where to save the files can also be configured.
Attribute | Required | Description |
---|
from | Y | Defines the field name before mapping. Needs to point at the base-64 string. |
to | Y | Defines the field name after mapping. |
precedence | N | Defines the precedence used when mapping. |
Function type | Y | Defines the function type of the mapping. Needs to be "Message functions" |
Function | Y | Defines the type of mapping. Needs to be "Save a base-64 encoded attachment". |
filename | Y | Defines the filename and path where to save the attachment. |
The example below maps a list of attachments and indexes them in the normalized field attachments. The from field points at the base-64 string while the filename is replaced by the value of the filename in the message. The from field can include a regular expression and the "to" and "filename" fields can include capture groups.

