ADO.NET Provider for Microsoft SharePoint

Build 24.0.9175

AddAttachment

Add an Attachment to a SharePoint List item.

Input

Name Type Required Accepts Input Streams Description
File String False False The path of the local file to be added.
List String True False The name of the List on the SharePoint server.
ItemID String True False The Id of the item on the List to add attachments for.
Content String False True The content as InputStream to be uploaded when File is not specified.
FileName String False False Name of the file to be uploaded. This will be used if content is not null. For example: test.csv

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful or not.
URL String The URL of the newly created item.

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