FlowmageDocs

List files

BetaReads data

Lists the files on a Oneflow contract — the contract PDF, attachments and verifications.

Settings

SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
Contract idRequiredThe contract's Oneflow id — a number.
Files per call1 to 100.
Offsetnumber
Sort by"id" or "type" or "extension" or "name"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
contractIdtext
limitnumber, by default 100
offsetnumber, by default 0
sort"id" or "type" or "extension" or "name", by default "id"

Output

FieldType
filesarray
fileCountFiles in this answernumber
totalCountHow many the contract holds in totalnumber
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
}