addAttachment()
Last updated 3/07/2025
The
addAttachment()
is a function on the Five
object and can be called during a Mail Merge action being executed. It is only
applicable in a function attached to the Do Merge Record event for the Mail Merge record. It is used to add
attachments to the email being created before the mail is sent.
Available
Server
Function Signature
addAttachment(attachment: string, name: string) : FiveError;
| Parameter | Type | Description |
|---|---|---|
attachment | string | A data URI encoded attachment as a string |
name | string | Name of the attachment to display in the email as a string |
Return Value
A FiveError object which can be investigated to know if the call was or was not successful.