DownloadFile
Downloads the contents of a file from Box to a local system or application.
Input
| Name | Type | Description |
| FileID | String | Identifier of the file to be downloaded. |
| FileVersionID | String | Identifier of a specific file version to download. If not provided, the most recent version is downloaded. |
| DownloadTo | String | The file path where the downloaded file should be saved locally. |
| AsUserId | String | Identifier of the user to impersonate for API requests, available only for Admin, Co-Admin, and Service Accounts. |
| UseSimpleName | Boolean | When set to true, removes unsupported special characters from the file name to ensure compatibility with operating systems that restrict certain characters. Characters removed include forward slash, backslash, colon, asterisk, question mark, double-quote, less than, greater than, and vertical bar.
The default value is false. |
| Name | String | The name to use when saving the file after download. If left blank, the original file name is used. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the file download operation completed successfully. |
| FileData | String | The downloaded file data encoded in Base64, returned when neither DownloadTo nor FileStream are specified. |