Session 6 / 15๐Ÿ”Žืขื‘

The bottom line (TL;DR)

  • An Iterator breaks an array into bundles; aggregators combine them back.
  • A Repeater for loops and pagination; Sleep up to 300 seconds.
  • Five error handlers: Ignore, Resume, Break, Rollback, Commit.
  • Break + incomplete executions = runs that don't get lost.
  • We built a resilient payment-reminder system.

The key points โ€” in depth

1. Iterator

Array โ†’ a bundle per item; multiplies Credits.

2. Aggregators

Array, Text, Numeric, Table; source module; Group by.

3. Repeater and Sleep

Loops, pagination, short pauses; a run time limit.

4. Error handlers

Ignore, Resume, Break, Rollback, Commit โ€” by the error type.

5. Incomplete executions

Turned on in Settings; a manual or automatic retry.

6. Error alerts

error.message and error.type; a central guard scenario.

Concept cards (click or press Enter to flip)

Iterator
Breaks an array into a bundle per item.
Array aggregator
Combines bundles into an array.
Text aggregator
Joins bundles into one text.
Repeater
Outputs N bundles with a counter i.
Break
Saves an incomplete run with retries.
Resume
Continues with a substitute value.
Rollback
Undoes actions in modules that support transactions.
Incomplete executions
A list of runs that failed and can be completed.

Spaced repetition โ€” the session concepts

Mark "I knew it" or "Not yet" โ€” the cards you did not know come back more often. Cards from all the sessions are in the arcade.

Quick cheat sheet

WhatDetails
Flow Control โ†’ IteratorArray โ†’ bundles
Flow Control โ†’ Array aggregatorBundles โ†’ array
Tools โ†’ Text / Numeric / Table aggregatorCombine into text/number/table
Flow Control โ†’ RepeaterA loop
Tools โ†’ SleepA pause โ‰ค 300 s
Right-click โ†’ Add error handlerError handling
{{error.message}}The error message
Scenario settings โ†’ Allow storing of incomplete executionsEnabling Break

Common mistakes to avoid

  • An Iterator after Search Rows (unnecessary and multiplies Credits).
  • A wrong source module in an aggregator.
  • Break without turning on incomplete executions.
  • Ignore on important errors without an alert.
  • A long Sleep that exceeds the run time.

Self-review questions

  1. When do you need an Iterator and when not?
  2. What's the difference between Break and Commit?
  3. How do you calculate an Iterator's Credits?
  4. How do you do pagination?
  5. What happens if Gmail goes down in the middle of the reminders?

Homework and preparing for the next session

  1. The reminder system is active with Break.
  2. Preparing for session 7: create a Sales sheet with 30 rows: date, agent, product, amount, region.