GetChannelFile
Returns the contents of a file when provided the file URL or the ID information to find the file. Can be returned as either a BASE64 blob or a file
Input
| Name | Type | Required | Description |
| DownloadUrl | String | False | The URL provided by the ChannelFiles table as DownloadUrl. If not available, the drive ID and channel ID can be provided instead |
| DriveId | String | False | The ID of the drive containing the file that can be retrieved from the ChannelDrive table. Must be provided in combination with the Item ID if the DownloadURL is not provided. If provided in combination with DownloadURL and ItemId, a new DownLoadURL can be procured if the old link expires |
| FileId | String | False | The ID of the file to download that can be retrieved from the ChannelFiles table. Must be provided in combination with the Drive ID if the DownloadURL is not provided. If provided in combination with DownloadURL and DriveId, a new DownLoadURL can be procured if the old link expires. |
| 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 report was generated successfully. Returns true if successful, false otherwise. |
| FileData | String | Contains the full contents of the file as either a BASE64 blob or a file. |