Get contract
BetaReads data
Fetches one Oneflow contract with its parties, data fields and state.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Oneflow connection the step signs in with. |
| Contract idRequired | The contract's Oneflow id — a number. List contracts hands you contracts[].id. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `oneflow`) |
contractId | text |
Output
| Field | Type |
|---|---|
contract | object |
state | string |
lifecycleState | string |
parties | array |
dataFields | array |
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
}