recordAttachment
Adds one or more files represented by the specified Salesforce records as attachments to the generated email message. ContentVersion or Document records may specified for this purpose.
The files attached with this command can also appear linked to the EmailMessage record possibly created by the parent mail
command. However, please note that only attachments defined through ContentVersion records can be linked in this manner.
Parent commands
mail
Required. The file is attached to the email generated by this parent command.
Attributes
value | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | String, Collection | Yes |
Defines the file, or files, to be attached. The value is expected to be either a String specifying the ID of a ContentVersion or Document record, or a Collection containing Strings of that kind. |