Cmdlets for Microsoft Office 365

Build 24.0.9060

AddAttachments

Add attachment(s) to a message.

Input

Name Type Required Description
Id String False The Id of the message to add the attachment to.
DestinationType String False The destination object type where the attachment is being added. Allowed values are: Message or Event.
FileName String False Name of the email attachment.
LocalFile String False The file containing the content of the attachment
ContentBytes String False Content of the attachment encoded to Base64.

Result Set Columns

Name Type Description
ContentBytes String Added Successfully - if the attachment content was added to the message/event.
Id String Id of the attachment that was added.
LastModifiedDateTime Datetime Last modified date time of attachment that was added.
Isinline Boolean Whether the attachment that was added is inline.
Name String Name of the attachment that was added.
Contenttype String Content-type of the attachment that was added.
Size Int Size of the attachment that was added.

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