Change repeating block rows from an automation
Section titled “Change repeating block rows from an automation”This how-to is for builders whose records hold lists inside them — the lines of an order, the stages of a project, a log of what happened. A repeating block holds those rows, and three reaction actions change them without anyone opening the form:
| Action | What it does |
|---|---|
| Create Repeatable Block Record | Adds a row at the end of the block. |
| Update Repeatable Block Record | Changes the rows you select. |
| Delete Repeatable Block Record | Deletes the rows you select. |
The examples use an Orders entity with two repeating blocks: Items (the order lines) and Status log (rows of Date, Status and Note).
You need:
- Developer access on the module, to add reactions.
- A repeating block on the entity. See Block fields.
- The basics of reactions. See Reactions & automation.
The settings the three actions share
Section titled “The settings the three actions share”- Scope — which record’s block to change: Self (the record that set the reaction off), Reference (the record a reference field points to, chosen in Choose Field) or Relation (the records reached through a relation, chosen in Choose Relation). If no record is found, the action fails.
- Repeatable Block — the block to change. Only repeating blocks at the top level of the entity are listed; a block inside another block cannot be chosen.
- Action Success Criteria — when the action touches several records: Successful execution on at least one entry (the default) or Successful execution on all entries.
- The row’s fields — for Create and Update — are filled the same way as in Update Data Entry: Not Set, Default, Manual, Field, Pointer or Expression. See Filling in values. On Update, a field you leave at Default keeps the row’s current value.
Recipe: keep a status log on the record
Section titled “Recipe: keep a status log on the record”Each time the order’s Status changes, add a row to Status log.
- On Orders, add a reaction with the event On Entry Updated, and in Choose fields choose Status.
- Add Create Repeatable Block Record with Scope Self and the Repeatable Block Status log.
- Fill the row:
- Date — Expression,
scope.now(). - Status — Field, the order’s Status.
- Note — Manual, for example Changed.
- Date — Expression,
- Save.
A new row always goes at the end of the block. If the block is still empty, the row becomes its first row.
Limiting the event to Status in Choose fields matters: adding the row changes the order too, and without it the reaction would set itself off again — a run that the loop protection then stops, and that shows up in the run history as a failure. See Loops are stopped.
Recipe: mark every line of a cancelled order
Section titled “Recipe: mark every line of a cancelled order”- Add a reaction with the event On Workflow Step Reached on the Cancelled step.
- Add Update Repeatable Block Record with the Repeatable Block Items.
- In Record Selector, choose All Records.
- Set the row field Cancelled to Manual, Yes. Leave the other row fields at Default, so they keep their values.
- Save.
Choose the rows: Record Selector
Section titled “Choose the rows: Record Selector”Update and Delete act on the rows that the Record Selector picks:
| Record Selector | Picks |
|---|---|
| Number | The rows at the positions you enter in Record Index. Positions start at 0: 0 is the first row, 1 the second. Enter several, separated by commas. |
| Field | The row at the position held in a Number field of the record that set the reaction off — for example a Current stage field holding 2. |
| Expression | The rows at the positions an expression returns: one number, or a list of numbers. |
| Last Record | The last row. |
| All Records | Every row. |
Field and Expression give positions. They do not search the rows for a value: “the row whose Product is X” cannot be selected directly. Keep a Number field on the record that tracks the position you need, and select by Field.
An expression that returns true or false selects nothing. An expression that
fails also selects nothing.
When no row matches: On Record Selection Failure
Section titled “When no row matches: On Record Selection Failure”| On Record Selection Failure | Nothing matched, the block has rows | The block is empty |
|---|---|---|
| Skip (the default) | Nothing changes, no error | Nothing changes, no error |
| Fail | The action fails | The action fails |
| Fallback to last or fail | The last row is used | The action fails |
| Fallback to last or skip | The last row is used | Nothing changes, no error |
When only some of the positions you asked for exist — for example 0, 7 in a
block of three rows — the action goes ahead on the rows it found, with every option,
including Fail.
Choose Fail when a missing row means something is wrong and you want to see it in the run history. See Handle a failed automation.
Recipe: remove the last row
Section titled “Recipe: remove the last row”- Add the event you need — for example a Custom Action behind an Undo last step button. See Buttons.
- Add Delete Repeatable Block Record with the Repeatable Block Status log and the Record Selector Last Record.
- Save.
Delete has no row fields to fill. When it deletes several rows, the others move up, so positions you stored earlier may no longer point to the same row.
Good to know
Section titled “Good to know”- The whole record is checked after the change. If a new or changed row misses a required field, the action fails and nothing is written.
- Calculated fields in the block are worked out again.
- Changing a row counts as an update of the record: On Entry Updated reactions on the entity can run.
- Two Create Repeatable Block Record actions on the same block in one reaction add two rows.
Check the result
Section titled “Check the result”- Change the Status of a test order.
- Open the order: Status log has a new last row.
- If it does not, open the reaction’s run history. See Check that it ran.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
| The block is not in Repeatable Block | It is not repeating, or it sits inside another block. |
| The wrong row changed | Positions start at 0. 1 is the second row. |
| Nothing changed and no error | No row matched and On Record Selection Failure is Skip. |
| Every change shows an extra failed run | The reaction is not limited to Status in Choose fields, so adding the row set it off again and the loop protection stopped it. |
| The action fails after a row is added | A required field of the row is not filled. |
| Expression selects nothing | It must return a position (a number) or a list of positions, not true or false. |
See also
Section titled “See also”Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27