FlowmageDocs

Create contract

BetaChanges data

Creates a draft Oneflow contract from a template, with its parties and data fields.

Settings

SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
Workspace idRequiredThe Oneflow workspace the contract belongs to — a number.
Template idRequiredThe Oneflow template to create from — a number. List templates hands you the ids.
Nametext
Folder idtext
PartiesCounterparties as JSON, at most 40. Each is a company or an individual.
Data fieldsTemplate data fields: the field's custom id on the left, its value on the right.
TagsTag ids as a JSON array, e.g. [12, 15].
Valuenumber
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
workspaceIdtext
templateIdtext
nametext
folderIdtext
partiesany JSON
dataFieldsobject of text, by default {}
tagsany JSON
valuenumber

Output

FieldType
contractIdIdnumber
contractobject
statestring
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
}