List files
BetaReads data
Lists the files on a Oneflow contract — the contract PDF, attachments and verifications.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Oneflow connection the step signs in with. |
| Contract idRequired | The contract's Oneflow id — a number. |
| Files per call | 1 to 100. |
| Offset | number |
| Sort by | "id" or "type" or "extension" or "name" |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `oneflow`) |
contractId | text |
limit | number, by default 100 |
offset | number, by default 0 |
sort | "id" or "type" or "extension" or "name", by default "id" |
Output
| Field | Type |
|---|---|
files | array |
fileCountFiles in this answer | number |
totalCountHow many the contract holds in total | number |
Sample output, and the expression for each field
- fileCount0
- files[]
- totalCount0
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>",
"limit": 100,
"offset": 0,
"sort": "id"
},
"label": "List files",
"type": "oneflow.listFiles",
"version": 1
}