Skip to content

Template variables

Most step fields accept template references written as {{ something }}. At run time Routario replaces them with real values from the flow. Alongside the outputs of earlier steps, a few always-available namespaces exist. The value picker in the editor links here for each of them.

Available only inside a Foreach step.

  • loop.item — the current item being processed
  • loop.index — its position, starting at 1
  • loop.index0 — its position, starting at 0
  • loop.total — how many items there are
  • loop.first / loop.last — booleans for the first / last pass

The signed-in human who triggered the run (or whose behalf it ran on).

  • user.firstName, user.lastName
  • user.email — handy as a to: on Send email
  • user.phone, user.role, user.locale

  • now.date — today’s date
  • now.time — the current time
  • now.timestamp — a full ISO timestamp

  • workspace.name — the workspace / organisation name