ADO.NET Provider for Microsoft SharePoint

Build 24.0.9175

DownloadAttachment

Downloads a document from the SharePoint list.

Input

Name Type Required Accepts Output Streams Description
File String False False The path of the file to be saved, including the new filename. For example: 'C:/Users/User/Desktop/DownloadedFile.txt'.
RemoteFile String True False The path of the file on the server. This can be the full URL or simply the file name. If you use the name of the file, the latest version will be downloaded.
FileStream String False True OutputStream to write the downloaded attachment. Only returned if File is not set.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful or not.
FileData String The downloaded BASE64 encoded file content. Only returned if File and FileStream is not set.

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