Data table
Each dataset can have a data table: a spreadsheet with tabs, edited right on the dataset screen, for the test data the automation uses (customers, products, orders, stores). The script reads the table through the Proton Cloud SDK and can write to it.
Each run gets a copy of the table. The script reads and writes only on that copy, and the dataset does not change: the dataset table only changes when someone edits it on screen or uses Bring to the dataset on the run.
The table is an addition to the parameters: the dataset parameters stay as they are, and the table only shows up on a dataset that has one.
When to use it
| Use the data table for | Use parameters for |
|---|---|
| Test data with many rows that the automation goes through (items to sell, customers to register) | One value per step (the URL, the branch, the user) |
| Data that comes from an Excel or Google Sheets spreadsheet and goes back to it | What passes from one step to another (outputs) |
| Results the script writes down row by row (the order number, the status) | Passwords, tokens and keys, with Encrypt value |
:::warning Secrets stay in the parameters The table has no encrypted column. Passwords, tokens and keys stay in the dataset's encrypted parameters or in the secret variables of the environment. :::
Create the table
Open the dataset and click the Data table tab, next to Components. On a dataset without a table, choose:
- Create table: starts with an empty tab;
- Excel or CSV file: each sheet becomes a tab of the table, and the first row of each sheet holds the column names;
- From another dataset: copies the tabs of another dataset you can access, from any automation.
Nothing is saved until you click Save table. Meanwhile, the bar shows how many changes are unsaved, and Discard goes back to what it was. If you leave the screen with pending changes, Proton asks first, also when you use the browser back button.
Tabs and columns
Each tab is a table the script opens by name. New tab creates another one; double-clicking the tab name renames it. Tab and columns opens the tab name and its columns, to rename them, change their type or delete columns, and Delete tab deletes the tab with its rows.
The column name is the name the script uses (row["customer"]). To create a column, type in the empty column on the
right or use New column; double-clicking the header renames the column, and the values stay with it.
Each column has a type: Text, Number, Date (dd/mm/yyyy or yyyy-mm-dd) or Yes or no. The type only checks what is typed on screen and in the dispatch adjustment: the script always reads and writes text.
Edit like a spreadsheet
The grid works like Excel:
- Select: click and drag, Shift+click or Shift+arrows select a block. Ctrl+A selects everything, the row number selects the row and a click on the header selects the column.
- Copy and paste: Ctrl+C copies the selected block. Copy a range in Excel or Google Sheets and paste with Ctrl+V on the starting cell. Pasting past the last row creates the missing rows.
- Type: double click or Enter edits the cell, Delete clears it. Tab moves to the next cell and, at the end of the row, to the row below.
- Create and delete rows: type in the empty row at the end to create a row. Ctrl+- or the Delete rows button deletes the selected rows.
- Insert rows: Ctrl++ inserts empty rows above the selected ones.
- Fill: drag the small square at the corner of the block to fill the neighboring cells, repeating the block's pattern, like in Excel. Ctrl+D fills down and Ctrl+R fills right.
- Line break: Alt+Enter breaks the line inside the cell.
- Undo and redo: Ctrl+Z undoes and Ctrl+Y (or Ctrl+Shift+Z) redoes, up to 100 steps. The Undo and Redo buttons on the bar do the same.
- Filter a column: the funnel in the header, which shows up when you hover it, filters the column.
- Search in the tab: filters the rows by text.
The first column stays fixed when you scroll sideways. A value that does not fit the column type (an invalid date, text in a number column) turns red right away.
Import and export
Import brings tabs from an .xlsx or .csv file (up to 20 MB) or from another dataset. When bringing from another dataset, choose the tabs and what to do when the tab already exists here: Replace (the tab becomes equal to the other dataset's) or Append rows (keeps the rows here and adds the ones from there). What comes in enters the grid as unsaved changes, to review before saving.
Export downloads the table as an .xlsx, one sheet per tab of the table.
:::tip Test the script outside Proton
The exported file lets you run the script on your machine: point the PROTON_TABLE_FILE variable to it. See the SDK
for Python and Java.
:::
Do not confuse it with Import spreadsheet, which creates and changes datasets and parameter values.
Limits
| Limit | Value |
|---|---|
| Tabs per dataset | 20 |
| Columns per tab | 100 |
| Rows per tab | 10,000 |
| Characters per cell | 4,000 |
When saving, Proton checks everything at once: with any error (a limit exceeded, an invalid date, two columns with the same name), nothing is saved and the screen shows what to fix.
When someone else saves at the same time
Save table sends only what you changed. If someone else saved the table while you were editing, Proton merges the two edits and tells you the table was saved together with what the other person saved.
When the two edits clash (both changed the same cell, the row or tab you changed was deleted, or the name and columns of a tab changed on both sides), nothing is saved. The screen shows the list of conflicts, with the value you entered and the one the other person saved, and your changes stay on the screen. Reload brings the current version (what you changed is lost); if you prefer, note the values and redo them afterwards.
History
Each save of the table becomes a version (v1, v2, ...). The History button lists the versions, newest first, with who saved, when, the source and a summary of what changed (new, changed and deleted rows, created and deleted tabs, columns). The sources are: On the screen, Imported from a file, Brought from another dataset, Brought from run #N and Restored vN.
Choose a version to see the table as it was. Restore vN saves that version as a new save: the table goes back to how it was, and the history keeps every version, including the ones that came after. To restore, first save or discard what is pending on the screen.
Versions saved before the history kept the whole table show up in the list with their summary, but cannot be restored.
What happens in the run
The copy is made when the run is created (for a scheduled run, at the time it starts). The script:
- reads the tabs by name, or the first tab when no name is given;
- writes one cell at a time or adds several rows in one call;
- can create new tabs and columns, which exist only in the run;
- does not change the dataset table or the table of another run.
Duplicating the dataset and creating datasets from another one bring the table along.
Adjust at dispatch
In the Run wizard, a dataset that has a table shows its tabs and total rows. Adjust table opens the table to change cells, add or delete rows only for this dispatch, like parameters: the dataset table does not change. Use in this dispatch confirms, and Undo adjustments goes back to the dataset table. Recurrences do not carry adjustments.
Rerun with the same table
When you rerun a failure from the group drawer, the wizard asks where the table comes from:
- The same as run #N (recommended): the failed run; repeats the test with the table as it started in that run, with that dispatch's adjustments. What the script wrote does not come back.
- The dataset's current table: takes what changed in the dataset after that run and allows adjusting.
The automatic rerun (Re-run on execution failure) starts from the table as it started in the failed run.
Data table in the run
In the run details, the Data table tab shows that run's copy:
- As it ended or As it started, and Only changed rows to see just what the script touched;
- a cell the script changed is orange: hover it to see the previous value, the step and the time;
- a row the script added is green, and a tab created by the script shows up as a new tab;
- Export downloads the table as it is in the run.
Bring to the dataset
When the run ends, Bring to the dataset saves into the dataset table what the script wrote, so the next runs start from those values (the order number created, the next free customer). Before saving, choose:
- Which columns to bring: the columns where the script changed cells;
- Include the rows the script created: they go at the end of the tab;
- what to do with conflicts, the cells that changed in the dataset after the dispatch: Keep the dataset's (the edit made on screen wins) or Use the run's (overwrites the edit made after the dispatch).
A tab created by the script becomes a new tab of the dataset (if there is already one with the same name, it is left out), and a column created by the script becomes a new column of the tab. Rows and tabs deleted from the dataset after the dispatch are left out. Each save is recorded in the table history, with the source run.
Through the AI assistant
Proton MCP has tools to read and edit a dataset's table, see its history, restore a version, read a run's table and bring it to the dataset. See Tools.
Permissions
Viewing and exporting the table require the dataset read permission; editing, importing and bringing values from a run require the dataset update permission. The run tab follows the run read permission. On a private automation, your team's access level also applies.