FlowmageDocs

Find dimensions

BetaReads dataVersion 2

Finds Twinfield customers, suppliers or accounts by name or code.

Settings

SettingWhat it is
ConnectionRequiredThe Twinfield connection the step signs in with.
Company codeLeave empty to use the company code on the connection.
Kind"DEB" or "CRD" or "BAS" or "PNL" or "KPL" or "PRJ"
Search forA * stands for any run of characters, so *acme* finds every name holding acme.
Search inWhich column the pattern is matched against.
LevelRestricts the search to one dimension level; leave empty for all of them.
First rowWhere the page starts; the first row is 1.
Rows per callHow many rows one Finder call asks for.
Fetch every pageFollows the Finder's row counter, and refuses past 5,000 rows 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 `twinfield`)
officetext
dimtype"DEB" or "CRD" or "BAS" or "PNL" or "KPL" or "PRJ", by default "DEB"
patterntext, by default "*"
field"0" or "1" or "2", by default "0"
leveltext
firstRownumber, by default 1
maxRowsnumber, by default 100
returnAlltrue/false, by default false
cursortext

Output

FieldType
rowsMatchesarray
columnsColumn namesarray
rowCountMatches in this answernumber
totalRowsMatches Twinfield countednumber
hasMoreMore matches are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • columns
    • [0]"Code"
    • [1]"Name"
  • hasMorefalse
  • rowCount1
  • rows
    • [0]
      • Code"1000"
      • Name"Acme"
  • totalRows1

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": "",
    "dimtype": "DEB",
    "field": "0",
    "firstRow": 1,
    "level": "",
    "maxRows": 100,
    "office": "",
    "pattern": "*",
    "returnAll": false
  },
  "label": "Find dimensions",
  "type": "twinfield.findDimensions",
  "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 Twinfield connection the step signs in with.
Company codeLeave empty to use the company code on the connection.
Kind"DEB" or "CRD" or "BAS" or "PNL" or "KPL" or "PRJ"
Search forA * stands for any run of characters, so *acme* finds every name holding acme.
Search inWhich column the pattern is matched against.
LevelRestricts the search to one dimension level; leave empty for all of them.
First rowWhere the page starts; the first row is 1.
Rows per callHow many rows one Finder call asks for.
Fetch every pageFollows the Finder's row counter, and refuses past 5,000 rows rather than answering a short list.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `twinfield`)
officetext
dimtype"DEB" or "CRD" or "BAS" or "PNL" or "KPL" or "PRJ", by default "DEB"
patterntext, by default "*"
field"0" or "1" or "2", by default "0"
leveltext
firstRownumber, by default 1
maxRowsnumber, by default 100
returnAlltrue/false, by default false