DownloadFile
Download the file attachment specified in the record.
Input
| Name | Type | Required | Description |
| TableId | String | True | The unique identifier (dbid) of the table where the attachment is stored. |
| FieldId | Int64 | True | The unique identifier (fid) of the field where the attachment is stored. It needs to be a file attachment field. |
| RecordId | Int64 | True | The unique identifier of the record where the attachment is stored. |
| VersionNumber | Int64 | True | The file attachment version number. |
| Encoding | String | False | The FileData input encoding type. The allowed values are NONE, BASE64.
The allowed values are NONE, BASE64. The default value is BASE64. |
| FileLocation | String | False | Path to save the downloaded file. If a file exists, a new name is generated. If a directory, uses the original file name. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Whether the operation is successful or not. |
| ErrorMessage | String | Error message or details if any. |
| FileData | String | The content of the file, if the FileLocation or FileStream input is empty. |
| FileName | String | The name of the file where content is downloaded. |