FlowmageDocs

List contracts

BetaReads dataVersion 2

Lists Oneflow contracts, filtered by workspace, state, template or free text.

Settings

SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
WorkspacesComma-separated Oneflow workspace ids. Leave empty for every workspace you can see.
StatesComma-separated: draft, pending, signed, declined.
templateIdstext
SearchFree text over the contract's name and content, at most 300 characters.
Sort bytext
Contracts per call1 to 100 — Oneflow's maximum. With Fetch every page on, this is the page size.
OffsetHow many contracts to pass over first. Oneflow stops at 19,900 — past that, narrow the search with a filter instead.
Fetch every pagePages with offset until Oneflow runs out, and refuses past 5,000 contracts rather than answering a short list.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
workspaceIdstext
statestext
templateIdstext
searchtext
sorttext, by default "published_time"
limitnumber, by default 100
offsetnumber, by default 0
returnAlltrue/false, by default false
cursortext

Output

FieldType
contractsarray
contractCountContracts in this answernumber
totalCountHow many Oneflow holds in totalnumber
hasMoreMore contracts are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • contractCount0
  • contracts[]
  • hasMorefalse
  • 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>",
    "cursor": "",
    "limit": 100,
    "offset": 0,
    "returnAll": false,
    "search": "",
    "sort": "published_time",
    "states": "",
    "templateIds": "",
    "workspaceIds": ""
  },
  "label": "List contracts",
  "type": "oneflow.listContracts",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
WorkspacesComma-separated Oneflow workspace ids. Leave empty for every workspace you can see.
StatesComma-separated: draft, pending, signed, declined.
templateIdstext
SearchFree text over the contract's name and content, at most 300 characters.
Sort bytext
Contracts per call1 to 100 — Oneflow's maximum. With Fetch every page on, this is the page size.
OffsetHow many contracts to pass over first. Oneflow stops at 19,900 — past that, narrow the search with a filter instead.
Fetch every pagePages with offset until Oneflow runs out, and refuses past 5,000 contracts rather than answering a short list.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
workspaceIdstext
statestext
templateIdstext
searchtext
sorttext, by default "published_time"
limitnumber, by default 100
offsetnumber, by default 0
returnAlltrue/false, by default false