DownloadDocument
Download a document from the SharePoint library.
Stored Procedure Specific Information
Insert
RemoteFile can be both relative to the library, or it can be the full URL of the file. Below are
some examples:
EXECUTE DownloadDocument File = 'C:/Users/User/Desktop/DownloadedFile.txt', Library = 'Shared Documents', RemoteFile = 'https://mysite.sharepoint.com/Shared Documents/newFolder/FileToDownload.txt'; EXECUTE DownloadDocument File = 'C:/Users/User/Desktop/DownloadedFile.txt', Library = 'Shared Documents', RemoteFile = '/newFolder/FileToDownload.txt';
Input
| Name | Type | Description |
| File | String | The path of the file to be saved. You should include the new filename. For example, 'C:/Users/User/Desktop/DownloadedFile.txt'. |
| Library | String | The name of the library on the SharePoint server. For example, 'Shared Documents'. |
| RemoteFile | String | This can be either the relative path to the library or the full URL of the file. |
Result Set Columns
| Name | Type | Description |
| Result | String | Boolean value indicating whether the operation was successful. |