DownloadFile
Downloads a specified file from OneDrive or SharePoint.
Input
| Name | Type | Required | Description |
| FileId | String | True | Identifier of the file to be downloaded. |
| DownloadTo | String | False | Full path where the downloaded file is saved. If not specified, the file content is returned as output. |
| Encoding | String | False | Encoding format used for the FileData input, such as Base64.
The allowed values are NONE, BASE64. The default value is BASE64. |
Result Set Columns
| Name | Type | Description |
| Status | String | Indicates whether the stored procedure executed successfully or failed. |
| FileData | String | Encoded content of the downloaded file. Returned only if DownloadTo and FileStream are not specified. |