FlowmageDocs

Get contract

BetaReads data

Fetches one Oneflow contract with its parties, data fields and state.

Settings

SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
Contract idRequiredThe contract's Oneflow id — a number. List contracts hands you contracts[].id.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
contractIdtext

Output

FieldType
contractobject
statestring
lifecycleStatestring
partiesarray
dataFieldsarray
Sample output, and the expression for each field
  • contract{}
  • dataFields[]
  • lifecycleState""
  • parties[]
  • state""

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>"
  },
  "label": "Get contract",
  "type": "oneflow.getContract",
  "version": 1
}