Workflow Blocks
Add Record
Create a new record in a collection.
Add Record creates a record in a collection — one record (One), or one record per row of a list (Many). It can also update an existing record instead of adding a duplicate.
When to use it
Use it to save what a workflow collects — log a completed inspection, register a new asset, or store every row a Workflow Trigger received.
Settings
| Setting | What it does |
|---|---|
| Collection | The collection to write to. Required. |
| Records | One adds one record. Many adds one record per row of a list. |
| List | Many mode: the list to read rows from. Map columns to the list's Item fields with @. |
| Values | A value for each column — typed, picked, or inserted with @. |
| If the record already exists | Add a new one always adds. Update it updates the newest record whose Match on columns equal these values, or adds one if none match. |
| Match on | With Update it: the columns that identify the same record, e.g. Meter ID. Each needs a value under Values. |
| If a row fails | Many mode: Skip it and continue (failed rows are listed in the run) or Stop without saving (any failing row fails the step before anything is saved). |
Variables
With marker C1, One mode:
| Variable | Type | Notes |
|---|---|---|
C1.<column> | per column | One per mapped column. |
C1.recordId | Text | The new (or updated) record's ID. |
C1.system_was_updated | Boolean | With Update it only: whether an existing record was updated. |
Many mode:
| Variable | Type | Notes |
|---|---|---|
C1.recordIds | Array | The IDs of the records written. |
C1.system_added_rows | Number | How many records were added. |
C1.system_updated_rows | Number | With Update it only: how many were updated. |
C1.system_failed_rows | Number | How many rows failed. |
Paths
One output.
Notes
- Switching between One and Many removes the other mode's variables and clears Item values. The builder asks before switching.