FlowmageDocs

Find

BetaReads dataVersion 2

Looks up Twinfield master data — articles, VAT codes, periods, users and more.

Settings

SettingWhat it is
ConnectionRequiredThe Twinfield connection the step signs in with.
Company codeLeave empty to use the company code on the connection.
What to look upThe Twinfield type code. Use Find dimensions for customers and suppliers.
Search forA * stands for any run of characters, so *btw* finds every name holding btw.
Search in"0" or "1" or "2"
Extra settingsThe type's own narrowing settings — vattype is purchase or sales, dimtype is DEB, CRD, BAS, PNL, KPL or PRJ.
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
typetext, by default "ART"
patterntext, by default "*"
field"0" or "1" or "2", by default "0"
optionsobject of text, by default {}
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"VH"
      • Name"VAT high"
  • 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": "",
    "field": "0",
    "firstRow": 1,
    "maxRows": 100,
    "office": "",
    "options": {},
    "pattern": "*",
    "returnAll": false,
    "type": "ART"
  },
  "label": "Find",
  "type": "twinfield.find",
  "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.
What to look upThe Twinfield type code. Use Find dimensions for customers and suppliers.
Search forA * stands for any run of characters, so *btw* finds every name holding btw.
Search in"0" or "1" or "2"
Extra settingsThe type's own narrowing settings — vattype is purchase or sales, dimtype is DEB, CRD, BAS, PNL, KPL or PRJ.
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
typetext, by default "ART"
patterntext, by default "*"
field"0" or "1" or "2", by default "0"
optionsobject of text, by default {}
firstRownumber, by default 1
maxRowsnumber, by default 100
returnAlltrue/false, by default false