Built-In Attachment Functions
- getAttachmentIds()
- Get a List containing the IDs of all Attachments associated with this message. Uses the current connectorMessage variable.
- getAttachmentIds(channelId, messageId)
- Get a List containing the IDs of all Attachments associated with any channel / message.
channelId The ID of the channel associated with the attachments. messageId The ID of the message associated with the attachments.
- Get a List containing the IDs of all Attachments associated with any channel / message.
- getAttachments(base64Decode)
- Get List of Attachments associated with this message. This will get all attachments that have been added in the source and destination(s).
base64Decode If true, the content of each attachment will first be Base64 decoded for convenience.
- Get List of Attachments associated with this message. This will get all attachments that have been added in the source and destination(s).
- getAttachment(attachmentId, base64Decode)
- Get a specific Attachment associated with this message. Uses the current connectorMessage variable.
-
attachmentId The ID of the attachment to retrieve. base64Decode If true, the content of the attachment will first be Base64 decoded for convenience.
- getAttachment(channelId, messageId, attachmentId, base64Decode)
- Get a specific Attachment associated with any channel / message. You can use this to retrieve an attachment from a completely different channel.
channelId The ID of the channel to retrieve the attachment from. messageId The ID of the message to retrieve the attachment from. attachmentId The ID of the attachment to retrieve. base64Decode If true, the content of the attachment will first be Base64 decoded for convenience.
- Get a specific Attachment associated with any channel / message. You can use this to retrieve an attachment from a completely different channel.
- addAttachment(data, type, base64Encode)
- Add attachment (String or byte[]) to the current message.
data The data to insert as an attachment. May be a string or byte array. type The MIME type of the attachment. base64Encode If true, the content will be Base64 encoded for convenience. If the content you are passing in is not already Base64 encoded, you should pass in true for this argument.
- Add attachment (String or byte[]) to the current message.
- updateAttachment(attachment, base64Encode)
- updateAttachment(attachmentId, data, type, base64Encode)
- updateAttachment(channelId, messageId, attachment, base64Encode)
- updateAttachment(channelId, messageId, attachmentId, data, type, base64Encode)
- Updates an attachment associated with the current connector message, or with any message from any channel.
attachment The The Attachment Object to update. attachmentId The unique ID of the attachment to update. channelId The ID of the channel the attachment is associated with. messageId The ID of the message the attachment is associated with. data The attachment content (must be a string or byte array). type The MIME type of the attachment. base64Encode If true, the content will be Base64 encoded for convenience. If the content you are passing in is not already Base64 encoded, you should pass in true for this argument.
- Updates an attachment associated with the current connector message, or with any message from any channel.