ADO.NET Provider for Microsoft Exchange

Build 24.0.9062

CreateAttachments

Create and add a attachment to an existing email.

Stored Procedure Specific Information

Use CreateAttachments procedure to add an attachment to an existing email. To specify file paths of the attachments use Attachments input, whereas for base 64 encoded content specify AttachmentContent and AttachmentName.

EXECUTE CreateAttachments ItemId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD/FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAxEAAABDJHYjDdygQ5pQPUEu3S2cAAVZoayvAAAA', Attachments = 'C:\Users\User\Desktop\logfile.txt,C:\Users\User\Desktop\TestConnectionLog.txt'

Input

Name Type Required Accepts Input Streams Description
ItemId String True False The id of the email item to add the attachment to.
Attachments String False False The attachment to be added.
AttachmentContent String False False The attachment content base 64 encoded.
AttachmentName String False False The name of the file that will be created out of the attachment content.
Content String False True The content as InputStream to be uploaded when Attachments or AttachmentContent is not specified.

Result Set Columns

Name Type Description
AttachmentIds String The id of the attachment created

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