AddAttachments
Adds one or more attachments to an existing email message based on message ID.
Input
| Name | Type | Required | Accepts Input Streams | Description |
| Id | String | True | False | Identifier of the message or event to which the attachment is added. |
| DestinationType | String | True | False | Type of destination object for the attachment. Allowed values are: Message or Event. |
| FileName | String | True | False | File name of the attachment to be added. |
| LocalFile | String | False | False | Path to the local file that contains the content to be attached. |
| ContentBytes | String | False | False | Attachment content encoded as a Base64 byte array. Used if LocalFile is not specified. |
| Content | String | False | True | Streamed content of the attachment, used when neither LocalFile nor ContentBytes is provided. |
Result Set Columns
| Name | Type | Description |
| ContentBytes | String | Indicates whether the attachment content was successfully added to the target message or event. |
| Id | String | Identifier of the newly added attachment. |
| LastModifiedDateTime | Datetime | Timestamp indicating the last time the added attachment was modified. |
| Isinline | Boolean | Indicates whether the attachment was added as an inline element within the message or event body. |
| Name | String | Name of the attachment that was added. |
| Contenttype | String | The content type of the attachment. |
| Size | Int | Size of the added attachment in bytes. |