TDV Adapter for Microsoft SharePoint

Build 22.0.8462


Download a document from the SharePoint list.

Stored Procedure Specific Information


RemoteFile can be both relative to the server, or it can be the full URL of the file. Below are some examples:

EXECUTE DownloadAttachment File = 'C:/Users/User/Desktop/DownloadedFile.txt', RemoteFile = '';

EXECUTE DownloadAttachment File = 'C:/Users/User/Desktop/DownloadedFile.txt', RemoteFile = '/Lists/MyCustomList/Attachments/1/FileToDownload.txt';


Name Type Accepts Output Streams Description
File String False The path of the file to be saved.
RemoteFile String 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.
Encoding String False The data will be output to FileData in the specified encoding.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String True OutputStream to write the downloaded attachment. Only used if File is not provided.
ReadTimeout String False How many seconds the download may run. If given the download always fails if it runs longer than this, unlike Timeout which only triggers if the download stalls.

Result Set Columns

Name Type Description
Result String Boolean value indicating whether the operation was successful.
FileData String The downloaded file content. Only returned if File and FileStream is not set.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462