CData Python Connector for Microsoft Exchange

Build 25.0.9454

CreateAttachments

Creates and attaches one or more files to an existing email message using the message's unique identifier. It supports various file types and ensures attachment persistence.

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 Description
ItemId String True The unique identifier of the email item or message to which the attachment will be added. This ID is required to associate the new attachment with the correct message.
Attachments String False An input parameter representing one or more attachment objects to be added to the specified email item. This can include files, media, or other supported content formats.
AttachmentContent String False The content of the attachment provided as a Base64-encoded string. Used when the attachment is included as raw data instead of a file object.
AttachmentName String False The filename that will be assigned to the uploaded attachment. This name will appear in the recipient's email interface.

Result Set Columns

Name Type Description
AttachmentIds String A list of unique identifiers for each attachment successfully created and linked to the specified email item. Returned after execution of the procedure.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454