DownloadFile
Downloads a file that is attached to a specific CRM record.
Input
| Name | Type | Accepts Output Streams | Description |
| ModuleName | String | False | API name of the module containing the record with the attachment. |
| RecordID | String | False | Unique identifier of the record from which the attachment is downloaded. |
| AttachmentID | String | False | Unique identifier of the attachment to be downloaded. |
| DownloadPath | String | False | File path where the downloaded attachment is saved. |
| FileStream | String | True | Output stream instance to write the file content, used only if the download path is not specified. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the file download was successful. |
| Content | String | Base64-encoded content of the downloaded file, returned if the download path is not specified. |