Accumulate integers by appending to a list on a schedule

Recipe Tools

What it does

When a scheduled time arrives, this automation creates a list and appends integers to it in a loop. The workflow then calculates the total of all appended values and logs the sum.

Who it's for

Data and analytics teams who need to aggregate integer values in a repeating workflow.

How teams use this

Aggregate daily transaction counts

Run this automation each day to append transaction counts from the lookup table into an array, then sum them to get a daily total. The pattern stays the same and only the data source changes.

Track cumulative sales metrics

Adapt this automation to run hourly and append sales figures instead of generic integers. The loop and sum logic remain unchanged for a different business metric.

Filter values before summing

Extend this automation to include a condition that only appends integers above a threshold to the list. Add a filter step before the append so only qualifying values are summed.

How it works

  1. Run on a specified interval. Clock triggers this automation at the scheduled time you set, starting the integer accumulation and sum process.
  2. Search the lookup table. Search entries in the Brand Count lookup table to retrieve the data needed for the calculation.
  3. Create a list and append values. Create a temporary list and repeat the following steps for each item: append the integer value to the array and log the result to the Job report.
  4. Sum all values in the array. Use a formula to calculate the total of all integers appended to the list and log the final sum to the Job report.