SSIS Components for Microsoft Office 365

Build 25.0.9434

AddAttachments

Adds one or more attachments to an existing email message based on message ID.

Input

Name Type Required Description
Id String True Identifier of the message or event to which the attachment is added.
DestinationType String True Type of destination object for the attachment. Allowed values are: Message or Event.
FileName String True File name of the attachment to be added.
LocalFile String False Path to the local file that contains the content to be attached.
ContentBytes String False Attachment content encoded as a Base64 byte array. Used if LocalFile is not specified.

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.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434