Skip to content

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:

ActionWhat it does
Create Repeatable Block RecordAdds a row at the end of the block.
Update Repeatable Block RecordChanges the rows you select.
Delete Repeatable Block RecordDeletes 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:

  • 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.

Each time the order’s Status changes, add a row to Status log.

  1. On Orders, add a reaction with the event On Entry Updated, and in Choose fields choose Status.
  2. Add Create Repeatable Block Record with Scope Self and the Repeatable Block Status log.
  3. Fill the row:
    • Date — Expression, scope.now().
    • Status — Field, the order’s Status.
    • Note — Manual, for example Changed.
  4. 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”
  1. Add a reaction with the event On Workflow Step Reached on the Cancelled step.
  2. Add Update Repeatable Block Record with the Repeatable Block Items.
  3. In Record Selector, choose All Records.
  4. Set the row field Cancelled to Manual, Yes. Leave the other row fields at Default, so they keep their values.
  5. Save.

Update and Delete act on the rows that the Record Selector picks:

Record SelectorPicks
NumberThe 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.
FieldThe 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.
ExpressionThe rows at the positions an expression returns: one number, or a list of numbers.
Last RecordThe last row.
All RecordsEvery 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 FailureNothing matched, the block has rowsThe block is empty
Skip (the default)Nothing changes, no errorNothing changes, no error
FailThe action failsThe action fails
Fallback to last or failThe last row is usedThe action fails
Fallback to last or skipThe last row is usedNothing 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.

  1. Add the event you need — for example a Custom Action behind an Undo last step button. See Buttons.
  2. Add Delete Repeatable Block Record with the Repeatable Block Status log and the Record Selector Last Record.
  3. 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.

  • 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.
  1. Change the Status of a test order.
  2. Open the order: Status log has a new last row.
  3. If it does not, open the reaction’s run history. See Check that it ran.
ProblemWhat to check
The block is not in Repeatable BlockIt is not repeating, or it sits inside another block.
The wrong row changedPositions start at 0. 1 is the second row.
Nothing changed and no errorNo row matched and On Record Selection Failure is Skip.
Every change shows an extra failed runThe 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 addedA required field of the row is not filled.
Expression selects nothingIt must return a position (a number) or a list of positions, not true or false.

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