ADO.NET Provider for Microsoft Office 365

Build 24.0.9060

DownloadAttachments

Download the attachments of an email

Input

Name Type Required Accepts Output Streams Description
MessageId String True False Id of the email from which you want to get the attachments.
UserId String False False Id of the User. This will work only if the authenticated user has Admin permissions.
AttachmentId String False False Id of the attachment you want to download. Returns all the attachments of the email if not specified.
DownloadTo String False False Where to store the attachments. If not specified, it returns the content bytes of the attachment.This is required when MessageId is specified
Encoding String False False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An instance of an output stream where file data is written to. Only used if DownloadTo is not provided.

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.
FileData String The FileData output

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