DownloadFile
Downloads an attachment from a CRM record to local storage.
Input
| Name | Type | Accepts Output Streams | Description |
| ModuleName | String | False | The API name of the module containing the record with the attachment to download. |
| RecordID | String | False | The unique identifier of the record from which to download the attachment. |
| AttachmentID | String | False | The unique identifier of the attachment to download. |
| DownloadPath | String | False | The file system path where the downloaded attachment is saved. |
| FileStream | String | True | An output stream to which the attachment data is written. Used only when the download path is not provided. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the download operation was successful. |
| Content | String | The Base64-encoded content of the downloaded file, returned when the download path is not specified. |