Skip to main content

rollup_iterable_values

Internal beta โ€” config shape is being migrated

The Automation API is an internal beta and is not released yet โ€” endpoints and payloads may change or be withdrawn without notice. This action's config is being migrated to a typed schema; the fields below reflect that in-progress shape. Always read the authoritative, live shape from GET /v1/automation/meta/action before building against it.

Roll up values โ€” aggregates the values of a collected iterable into a single result (sum, count, average, and similar). group: "action". No specific trigger context is required.

Part of the Record collections family. This page documents the typed config; for how an action sits inside an automation definition, see Actions and Action examples.

Configโ€‹

KeyTypeRequiredDescription
rollup_typeenumyesThe aggregation to perform over the iterable's values. No canonical default.
rollup_variable_defreferencenoThe iterable whose values are rolled up โ€” a collection-scoped field variable an upstream collect action must have put in scope. Carried through when present, dropped when unset.
custom_variable_defobjectnoThe declared output variable holding the rollup result; reference it from later actions by its label. Defaults to { custom_type: 'any', label: 'Rollup' }.

rollup_type tokens (lower-case): count_all, count_empty, count_not_empty, percent_empty, percent_not_empty, sum, average, median, min, max.

Exampleโ€‹

An action entry inside an automation definition's actions[]:

{
"type": "rollup_iterable_values",
"config": {
"rollup_type": "sum",
"rollup_variable_def": {
"kind": "variable",
"source": "field",
"field_id": 123,
"field_type": "number",
"collection": true,
"previous": false,
"triggering": false
},
"custom_variable_def": { "custom_type": "any", "label": "Total amount" }
}
}

Validation & behaviorโ€‹

  • rollup_type is the only member required at input โ€” it has no canonical default.
  • rollup_variable_def is advertised optional at input, but a rollup with no iterable in scope fails the validate gate with action_variable_def_missing โ€” so in practice you must supply a collection-scoped field variable that an upstream collect action put in scope (beta โ€” see meta/action).
  • custom_variable_def is the action's output: omit it to accept the canonical default ({ custom_type: 'any', label: 'Rollup' }), or set a label to reference the result from later actions.

See alsoโ€‹