Zum Inhalt springen
DeutschlandGPT

Data Table

Read and write your data tables from workflow nodes

The Data Table integration reads and writes your Data Tables from inside a workflow. It is built in, so you need no connection.

In the node picker, Integrations → Data Tables holds four of these nodes: Get Rows, Insert Row, Update Rows and Delete Rows. Find First Row, Upsert Row and Count Rows come with the Data Table entry in the list of integrations.

How to create tables and define columns is described on the Data Tables page.

Filters and Row IDs

Every row has an automatic numeric ID in the column _id. Most actions accept either a Row ID for one specific row or a Filter with conditions on your columns. Update and Delete need one of the two.

Actions

Data Table: Get Rows

Returns rows, optionally narrowed by a row ID or a filter.

InputRequiredDescription
Data TableYesThe table to read from
Row IDNoReturn only this row
FilterNoConditions the rows must meet
LimitNoMaximum number of rows to return
OffsetNoNumber of rows to skip, for paging
OutputTypeDescription
rowsarrayThe rows found
countnumberNumber of rows found

Data Table: Find First Row

Returns the first row that matches a filter.

InputRequiredDescription
Data TableYesThe table to search
FilterNoConditions
OutputTypeDescription
rowobjectThe first matching row, or null
foundbooleanWhether a row was found
rowIdnumberID of the row found

Data Table: Insert Row

Adds one row, or several rows at once if you pass an array.

InputRequiredDescription
Data TableYesThe target table
Row DataYesAn object of column keys and values, or an array of such objects
OutputTypeDescription
rowsarrayAll inserted rows
insertedIdsarrayIDs of all inserted rows
rowobjectThe first inserted row
insertedIdnumberID of the first inserted row

Data Table: Upsert Row

Updates the rows that match the Match Filters. If none match, it inserts a new row. Use it when a workflow may process the same item twice.

InputRequiredDescription
Data TableYesThe target table
Match FiltersYesConditions that identify an existing row
Row DataYesValues to write, both for update and insert
OutputTypeDescription
rowobjectThe resulting row
wasInsertedbooleantrue if a new row was created
insertedIdnumberID of the new row, if one was inserted
updatedCountnumberNumber of rows updated

Data Table: Update Rows

Changes the row with the given ID, or all rows that match the filter.

InputRequiredDescription
Data TableYesThe target table
Row IDOne ofThe row to update
FilterOne ofConditions for the rows to update
UpdatesYesColumn values to set
OutputTypeDescription
updatedCountnumberNumber of rows changed
updatedRowsarrayThe rows after the update

Data Table: Delete Rows

Removes the row with the given ID, or all rows that match the filter.

InputRequiredDescription
Data TableYesThe target table
Row IDOne ofThe row to delete
FilterOne ofConditions for the rows to delete
OutputTypeDescription
deletedCountnumberNumber of rows removed

Deleting rows cannot be undone. For Update Rows and Delete Rows, consider switching on Approval required in the node so that a person confirms the change first. See Approvals.

Data Table: Count Rows

Counts the rows that match a filter without returning them.

InputRequiredDescription
Data TableYesThe table to count
FilterNoConditions
OutputTypeDescription
countnumberNumber of matching rows
Was this page helpful?