JDBC Driver for Microsoft SharePoint

Build 25.0.9434

AddAttachment

Adds an attachment to a SharePoint list item. Useful for linking supplementary files to SharePoint records.

Input

Name Type Required Accepts Input Streams Description
File String False False The full path of the local file to be uploaded as an attachment.
List String True False The name of the SharePoint list where the attachment will be added.
ItemID String True False The unique identifier of the list item to which the attachment will be added.
Content String False True The file content as an InputStream. This parameter is used when the 'File' path is not specified.
FileName String False False The name of the file to be uploaded as an attachment, including the file extension (such as 'document.pdf'). This is used if 'Content' is not null.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the attachment was successfully added. Returns 'true' for success and 'false' for failure.
URL String The URL of the newly created attachment in SharePoint.

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