Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Oneflow connection the step signs in with. |
| Contract idRequired | The contract's Oneflow id — a number. |
| File idRequired | The file's Oneflow id — a number, from List files → files[].id. |
| Download as | A name to give the download, e.g. agreement.pdf. Leave empty for Oneflow's own name. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `oneflow`) |
contractId | text |
fileId | text |
downloadAs | text |
Output
| Field | Type |
|---|---|
nameFile name | string |
contentType | string |
base64File contents (base64) | string |
sizeSize in bytes | number |
Sample output, and the expression for each field
- base64""
- contentType""
- name""
- size0
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"contractId": "<contract id>",
"downloadAs": "",
"fileId": "<file id>"
},
"label": "Download file",
"type": "oneflow.downloadFile",
"version": 1
}