Skip to main content

Reference tables

A reference table holds a list from your ERP or accounting system, such as the items you sell or the customers who order from you, in an Unstract Flow project. You fill it by importing the file your system exports, and you import again whenever the list changes.

Each table is made from a table type, which fixes its columns. The column a file calls "Item Code" and the one another calls "Internal Reference" both land in the table's SKU, so exports from different systems fill the same columns.

Create a table​

Anyone who can open the project can see its tables. Changing them (creating, importing, renaming, deleting) needs the Owner, Admin or Member role and edit access to the project; Projects says who has it.

  1. On the project's page, open the Data tab and select New table.
  2. Pick a Type.
  3. Enter a Name. It starts with a letter and holds letters, digits, - and _, up to 64 characters. Flow suggests the type's name.
  4. Select Create table. Flow opens the table's Import tab.

Table names are unique in a project, and capitals don't count: Items and items are one name. A project holds up to 50 tables.

Table types​

TypeKeyRequiredOther columns
ItemsSKUSKU, NameDescription, Unit, Pack size, Price, Currency, Category, Barcode, Manufacturer part number, Active
CustomersCustomer IDCustomer ID, NameEmails, Email domains, Phone, Billing address, Shipping address, Currency

The key identifies a record from one import to the next. Emails and Email domains each hold several values in one cell, separated by commas, or by semicolons when the cell holds one. Active holds the ERP's own answer to whether the item is still sold. It reads yes, true, y, t, 1, x, active, enabled, on, available, live or current as yes, and no, false, n, f, 0, inactive, disabled, off, discontinued, obsolete, archived, deleted, blocked or retired as no, in any capitals. Any other word rejects the row.

Import a file​

Flow reads CSV and other delimited text (comma, semicolon, tab or pipe), and Excel and OpenDocument workbooks (.xlsx, .xlsm, .xls, .ods). A file can be up to 100 MB, with up to 200,000 rows under its column names, 1,000 columns and 20 million cells, and a cell can hold up to 32,767 characters. Empty rows don't count, up to 2,000,000 rows in all. A workbook can hold up to 1,000 sheets. An .xlsx or .xlsm file can unpack to at most 1 GB, and an .ods file to 25 MB. A file over 100 MB is refused when you pick it. Past any other limit the import fails, and History shows the reason, such as "The file has more than 20,000,000 cells."

  1. On the table's Import tab, select Import a file, or Import a new version when the table already holds records, and pick the file.
  2. Wait while Flow reads it. Flow looks for the row of column names in the first 20 rows, skipping title rows above it, and reads the first sheet that holds anything.
  3. Check where each column of the file goes. Each one shows up to three of its values and goes to a column of the table, to Keep as extra, or to Ignore. A column Flow couldn't place starts at Keep as extra, and a column kept as extra is stored with its record. A label says where Flow's choice came from: Recognised (the table type knows that column name), Suggested (Flow read the values), or Same as last import. A workbook with several sheets shows Sheet, to read another one.
  4. If Flow asks how to read a number column, such as Price or Pack size, choose 1,234.56 or 1.234,56. Flow asks when every value fits both styles, or when the values disagree; in that case, rows written the other way are rejected.
  5. Select Continue. Flow checks every row and compares the file with what the table holds.
  6. Read the summary: Unchanged, New, Changed, Removed and Rejected rows. Open New, Changed, Removed or Rejected rows to see the first 20; a changed record lists the columns that differ, with the old value and the new.
  7. Select Make current. The table now holds the new version. Discard throws the import away and leaves the table as it was.

To import from your own systems on a schedule, such as a nightly export from your ERP, use Reference tables over the API.

The table doesn't change until you select Make current. An import left waiting for its mapping or its review for 24 hours is discarded. A table has one import in progress at a time; finish or discard it before uploading another file.

When an import would remove more than a fifth of the table's records, Flow asks you to type the table's name before Make current works. The warning says how many of the table's records the import removes, and capitals in the typed name don't count.

What an import changes​

Records are matched by their key. Capitals and spaces around the key don't count, so A-12 and a-12 are one record.

Row in the fileWhat happens
Its key isn't in the tableThe record is added.
Its key is in the table, with other valuesThe record is updated.
Its key is in the table, with the same valuesNothing changes.
A value doesn't fit its column, such as lots for a priceThe row is rejected and its record keeps its current values.
The key is emptyThe row is rejected.
A row with no key and a cell that starts with Total, Grand total, Subtotal or SumIt's skipped as a totals row.
The same key appears on two rowsThe whole import fails, listing the rows. Fix the file and upload it again.

A record in the table whose key isn't in the file is archived: it leaves Records, and the import's Removed list names it before you select Make current.

Flow saves the column mapping when you make an import current. The next file with the same column names, in the same order, gets the same mapping, labelled Same as last import.

Records, history and settings​

The table's page has these tabs.

TabWhat it holds
RecordsThe records of the current version, 50 to a page, searched by key or name. Extras counts the columns kept as extra; hover to read them. Select a record to open it with what the table knows about it.
KnowledgeEvery phrase and note about the table's records, where each came from, and a switch to turn each off.
ImportThe import in progress, or Import a file.
HistoryEvery import, newest first, with its file, status and what it changed.
SettingsRename the table in Name with Save, set when its matches are final in Matching, Reset the saved mapping once a mapping has been saved, and Delete table. Only people who can edit the project see it.

History names each import's status:

StatusMeaning
Reading (reading)Flow is reading the file.
Waiting for mapping (mapping)The mapping is waiting for you.
Preparing (staging)Flow is checking every row.
Ready to review (staged)The summary is waiting for Make current or Discard.
Current (current)The version the table holds now.
Replaced (superseded)A later import was made current.
Discarded (discarded)Thrown away, by you or after 24 hours.
Failed (failed)The file couldn't be read, had no rows, passed a limit on its size, listed a key twice, or the import stopped before it finished. The reason shows beside it.

Flow keeps the uploaded file of the current import and of an import in progress. When an import is replaced, discarded or fails, its file is deleted.

Delete table deletes every record and import of the table. Deleting the project deletes its tables.

Use a table in a workflow​

A workflow reads a table when its spec names it as @table: and the table's name, such as @table:Items; capitals don't count. In the spec editor, type @table: to pick from the project's tables, each shown with its type and record count. The name stays plain text, as an @file: name does. Preparing gives the workflow the table's columns and the four actions that read it, which Built-in connectors lists; you add nothing in the Tools tab.

For each order email in @gmail, find the customer in @table:Customers by the
sender's address, then find each order line's item in @table:Items. Put the
lines that need checking, and those that match nothing, in one review of the
whole order.

When you select Prepare, the Prepare tab lists a warning under Warnings for each table the spec names that the project doesn't have, such as "@table:Prices isn't a table in this project. Create it on the project's Data tab, or correct the name, before you run this workflow.", and for each one with no import made current yet. Preparing goes on.

A run finds each table by its name at every step that reads it. After the table is renamed or deleted, that step fails with "This project has no table named 'Items'."; a table with no import made current fails it with "Table Items is empty."

What a match returns​

A workflow matches a piece of a document to a record, such as an order line to an item, or a sender's email address to a customer. Flow tries, in order:

  1. The record's key, or an exact value: for Items, the Barcode; for Customers, an address listed in Emails, or else the address's domain listed in Email domains. Capitals and the spaces around the text don't count.
  2. A phrase the table holds for a record, as What a table learns describes. Capitals, extra spaces and punctuation such as commas, quotes and brackets don't count; -, /, #, &, + and % do.
  3. Close spelling of each record's phrases, and of an item's Name, Description and Manufacturer part number, or a customer's Name.
  4. The AI, when close spelling found records, nothing before it did, and close spelling's match isn't final. The AI reads the text, what the workflow passed with it (such as the customer), the up to five records close spelling found, with their columns and notes, and on an Items table the customer's notes when the project has one Customers table. It picks one of those records, or none, with a confidence. A line it doesn't answer within 45 seconds, or answers with any other record, keeps what close spelling found.

An item whose Active is no is never offered as a match; a workflow can still read it by its key. Each match carries a status:

StatusMeaning
matchedThe key or an exact value found one record, or a phrase taught by as many reviews as Matching asks, or added by a person. With Matching set to a confidence, also an untied close match, or the AI's pick, at or above it. The workflow uses it as it is.
needs_reviewA close match or the AI's pick below the confidence Matching sets (all of them, by default), a phrase taught by fewer reviews than it asks, or one exact value or phrase that fits several records. When the AI picked none of them, the match has no key. The match carries up to five records that could fit, the AI's pick first and the rest best first, for a person to choose from.
no_matchNo record fits.

Each match also carries a reason, the step that decided it: exact_key, exact_value, learned, close_spelling or ai. A no_match has none.

Say in the spec what the workflow does with each status, such as putting the lines that need review in one review of the order. One call matches up to 200 lines, so a longer document takes several calls.

A workflow can also read one record by its key, and list the records whose columns meet conditions: 50 unless the step asks for more, up to 500, in key order.

When a match is final​

On the table's Settings tab, Matching sets when a workflow gets a match it can use as it is, and when the match goes to a person to check. Only people who can edit the project change it, with the card's own Save, and the next match follows it. A key or exact value that finds one record is always final.

SettingChoicesDefault
A phrase the table learned is finalAfter 1, 2, 3 or 5 reviews, or Never: always send it to review. A phrase someone added is final at once, unless this is Never: always send it to review.After 2 reviews
A close match or the AI's pick is finalNever: always send it to review, or at 95%, 90% or 80% confidence or more. When several records fit the text equally well, close spelling's match is never final; the AI's pick can be.Never
AI weighs close matchesOn or off. Off, close spelling's match stands, with the status the setting above gives it.On

A run reads one version​

A run reads each table as it was the first time the run read it. An import made current while the run is going doesn't change what the run sees, even when the run waits days for a review; the next run reads the new version. Two things count from the next match, in every run: what the table knows (a phrase or note added, learned, switched off or deleted) and a change to Matching.

Move, copy or export a workflow​

Moving, copying or exporting a workflow gives the other project its own table for each table the spec names with @table:. The new table never has the original's phrases and notes.

When youEach table the spec names
Move the workflow to another projectIs copied with its records, unless the new project has a table of that name in any capitals: then the workflow reads that one.
Make a copyArrives empty, with its type, Matching settings and saved column mapping. Import a file into it before the copy runs.
Export and importTravels with its records when it holds 20,000 or fewer; a larger one arrives empty. When the project you import into has a table of that name, in any capitals, the workflow reads that one.

Each new table is one of its own, with no link to the original. Its phrases and notes start empty, and an import into one changes nothing in the other.

What a table learns​

A table keeps phrases and notes about its records. Each phrase says that words in your documents mean a record, such as "blue widgts" for the item A-102, or don't. Notes go to every workflow that reads their record. Reviews of your workflows teach phrases, and people who can edit the project add both.

From reviews​

When someone resolves a review of a run that matched against a table, Flow compares the review's values with what the run's matches proposed, leaving out the matches an earlier review of the run taught from. Only the values the review sent count: a value changed and then changed back counts as left as it was, and one changed twice counts as one change, from the value the review showed to the one it sent.

  • A value in Editable Values changed from the key a match proposed to another key of the same table teaches two phrases: the matched text means the new record, and doesn't mean the proposed one.
  • A proposed key left as it was in Editable Values, on a line that came back needs_review, teaches that the matched text means that record.

Flow links a value to a match by the key in it. Lines with different text can find the same key, such as a barcode line and a misspelt line that both found A-100. Flow then tells them apart in one of two ways:

  • By order: the review lists the keys of one matching step, in the order of its lines, and no other value equal to one of them.
  • By row: the value's row holds the text one of those lines was matched by.

If neither tells, the value teaches nothing.

When a workflow passes the order's customer key with each line it matches against an Items table, a review teaches the phrase for that customer only. A customer's phrase is tried before one for everyone.

These reviews teach nothing: one decided with Reject & Next, one from a review step set to Info only, no stop, and the new ticket that opens when Flow couldn't deliver a decision, whose values the first ticket has already taught.

When a learned phrase is final​

A match found by a phrase that two reviews taught comes back matched; a correction and a kept key each count as one review. A review adds one to a phrase's count, however many of its values teach it. After one review the match comes back needs_review, with the phrase's record first. A match found by a phrase someone added comes back matched at once. A phrase that says the words don't mean a record takes that record out of every match of those words, even by its own key or barcode.

Add, switch off and delete​

Only people who can edit the project make these changes. Everyone who can see the project sees the knowledge.

To add a phrase:

  1. On the Records tab, select a record. A panel opens with its columns, its extras and What the table knows.
  2. Select Add phrase.
  3. Type the Words a document uses.
  4. Choose Means this record or Doesn't mean this record.
  5. On an Items table, for one customer only, type the customer's key in Only for this customer (optional).
  6. Select Add phrase to save.

To add a note, select Add note in the panel, type the Note, and select Add note to save.

The Knowledge tab lists every phrase and note with its record and where it came from, such as "2 reviews, last 27 Oct 2026" or "Added by Ann Lee, 27 Oct 2026". On an Items table a Customer column shows whose it is, or Any. Search by words or key, and filter by kind, by source and by whether it's on.

  • The switch in On turns an entry off or on. Workflows ignore an entry that's off from their next match. A later review that teaches an entry you switched off adds to its count and leaves it off.
  • The bin deletes an entry after you confirm. Deleting loses its review count; switch it off to keep it.
  • A newer entry that says the opposite of an entry switches that entry off, and hovering its switch shows "Off: another entry says the opposite." A later review that teaches it switches it back on and the newer one off, unless a person added the newer one: a review never switches off a phrase someone added, and keeps its own phrase switched off instead. Switching an entry on yourself switches off the entry that says the opposite, whoever added it.

Imports never change what a table knows. A record that an import removes keeps its phrases and notes, and they apply again when a later import brings the record back.

Limitations
  • A column of the file fills one column of the table. An address an export splits into street, city and postal code columns can't be joined into Billing address: keep the parts as extras, or join them in the export.
  • Excel drops the leading zeros of a code stored as a number, so 00123 arrives as 123. Export codes as text, or as CSV, to keep them.
  • In a number column read like 1,234.56, a value such as 1,234 reads as 1234; read like 1.234,56, it reads as 1.234. Check the summary's Changed list after the first import from a new system.
  • A Manufacturer part number is matched by close spelling, so one written exactly comes back needs_review unless Matching makes close matches final.
  • A table that a move or an import skips, because the project already holds 50 tables or the file's copy can't be read, is missing from the new project. Runs fail at the first step that reads it, and Prepare warns about it only when you prepare the workflow again.
  • A review teaches only through the keys in its Editable Values. A key in Read-only Values teaches nothing, and so does a key that other lines also found when the review shows it out of the lines' order and without its line's text.