Page: Lookup tables
Who this is for: people who build workflows and people who keep reference data, such as cost centre codes, up to date.
Before you start: everyone who can see workflows can see this page and export tables. To create, change, import, restore or remove a table you need the Activate workflows permission (Admin and Editor). Viewers see the same page read-only.
Lookup tables are small tables your workflows read with lookup('<table>', key, '<column>'). They are for reference data, not for personal data or secrets. See Use lookup tables for the whole task.
The list
Section titled “The list”One line under the title sums up the list, for example 4 tables, 312 rows in all. The tables are in a table with these columns:
| Column | What it shows |
|---|---|
| Table | The name in plain words, which opens the table, what it is for, and in small grey text the name a workflow reads it by, for example cost_centres. |
| Columns | The column names. |
| Rows | How many rows it has. |
| Version | Its current version. |
| Updated | When it last changed. |
New lookup table opens a form in a panel on the right: Name, What it’s for (optional) and Start from (An empty table or A CSV file). Select Create table, and the new table opens.
When there are none, the page says Add your first table, with New lookup table. The form it opens can also start from a CSV file. If you can only view tables, it says that someone who can activate workflows adds them.
One table
Section titled “One table”- At the top: how many rows and columns it has (the first column is the key, for example Looked up by code), and which version you are looking at and when it was saved.
- Rows: the column names and rows. Filter rows shows only rows that contain the text. Large tables show 200 rows at a time; select Show more rows for more.
- Editing (Activate workflows): type in the cells and column names, Add a row, Add a column, or remove a row or column with the buttons next to it. The key column can’t be removed. As soon as something changed, a note says Save your changes with Save as a new version; Discard changes is next to it. Problems, such as two rows with the same key, are explained before anything is saved.
- Export as CSV downloads the version you are looking at. Cells that a spreadsheet would run as a formula get a
'in front. - Import a CSV file (Activate workflows) replaces the whole table with the file and saves it as a new version.
- Remove table (Activate workflows) removes the table and every version, after you confirm.
- Show technical details: the expression to paste into a workflow, with Copy the expression, and the column names.
Versions
Section titled “Versions”Earlier versions says how many versions are kept. Select it to see them in a panel: each with its number of rows and when it was saved, the current one marked Current. Select View to look at an older version. It is read-only, and a note says which version new runs read, with Back to the current version. Restore this version saves its rows as a new version, so nothing is lost.