Generate iterative sum with scheduled repeat logic

Recipe ToolsMarketing

What it does

When a scheduled interval triggers, this automation creates a variable to track a running total, then repeats an increment step 100 times to sum numbers 1 through 100. The final result logs to the job report.

Who it's for

Engineering teams who need to validate repeat logic and variable accumulation in automated workflows.

How teams use this

Validate repeat and variable logic

Run this automation on a test schedule to confirm that repeat loops and variable updates work as expected. The job report shows whether the sum matches 5050.

Adapt accumulation for batch processes

Use this pattern to verify that iterative workflows can safely accumulate values across many cycles. Set a custom list size and increment formula for your own batch operations.

Monitor scheduled job performance

Schedule this automation to run at off-peak hours and log results so the team can track whether repeat steps complete within expected time windows.

How it works

  1. Start on a specified interval. The Clock automation starts on a schedule you define, such as daily or weekly, to begin the iterative sum process.
  2. Initialize total and repeat list. Create a variable named total_count set to zero, and build a list of 100 items to iterate through in the Clock workflow.
  3. Loop through each item and sum. For each item in the list, add its position number to total_count so the running total grows from 1 to 5050 across all iterations.
  4. Log the final result. Write the total_count value to the job report so you can verify the iterative submission reached the expected sum of 5050.