JDBC Driver for Microsoft Exchange

Build 24.0.9062

DownloadAttachments

Download the attachments of an email

Input

Name Type Required Accepts Output Streams Description
AttachmentSource String True False Source to retrieve an attachment from. Allowed values: Message, Event.
SourceId String True False Id of the email or event from which you want to get the attachments.
AttachmentId String False False Id of the attachment you want to download. Returns all the attachments of the email if not specified. If DownloadInEmlFormat is specified, this is not required.
DownloadTo String False False Where to store the attachments. If not specified, it returns the content bytes of the attachment.
UserId String False False Id of the Impersonated User.
DownloadInEmlFormat String False False Whether the attachment should be downloaded in .eml format

デフォルト値はfalseです。

FileStream String False True An instance of an output stream where file data is written to. Only used if DownloadPath is not provided.
Encoding String False False The ContentBytes input encoding type.

使用できる値は次のとおりです。NONE, BASE64

デフォルト値はBASE64です。

Result Set Columns

Name Type Description
Id String Id of the downloaded attachment.
Name String Name of the downloaded attachment.
ContentBytes String Content of the attachment.
LastmodifiedDatetime String Last modified date of the attachment.
ContentType String Content type of the attachment. If DownloadTo is specified this field will be null.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062