Create contract
BetaChanges data
Creates a draft Oneflow contract from a template, with its parties and data fields.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Oneflow connection the step signs in with. |
| Workspace idRequired | The Oneflow workspace the contract belongs to — a number. |
| Template idRequired | The Oneflow template to create from — a number. List templates hands you the ids. |
| Name | text |
| Folder id | text |
| Parties | Counterparties as JSON, at most 40. Each is a company or an individual. |
| Data fields | Template data fields: the field's custom id on the left, its value on the right. |
| Tags | Tag ids as a JSON array, e.g. [12, 15]. |
| Value | number |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `oneflow`) |
workspaceId | text |
templateId | text |
name | text |
folderId | text |
parties | any JSON |
dataFields | object of text, by default {} |
tags | any JSON |
value | number |
Output
| Field | Type |
|---|---|
contractIdId | number |
contract | object |
state | string |
Sample output, and the expression for each field
- contract{}
- contractId1
- 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>",
"dataFields": {},
"folderId": "",
"name": "",
"templateId": "<template id>",
"workspaceId": "<workspace id>"
},
"label": "Create contract",
"type": "oneflow.createContract",
"version": 1
}