Log the maximum integer from a Lookup Table

Recipe Tools

What it does

When a scheduled time arrives, this automation retrieves all entries from a Lookup Table and identifies the highest integer value. It logs the result to the job report so someone can review the maximum value found.

Who it's for

Data and analytics teams who need to track the largest integer stored in a Lookup Table on a recurring schedule.

How teams use this

Monitor the highest ID in use

Run this automation daily to find the maximum customer or transaction ID stored in the Lookup Table. The team reviews the job report to confirm the latest ID and plan for the next batch.

Alert when a threshold is reached

Add a condition to check if the maximum value exceeds a limit, then send a notification to Slack or email. Only the threshold condition and notification step need to be included.

Export the result to a spreadsheet

Retarget this automation to write the maximum value to a data warehouse or spreadsheet instead of just the job report. The search and comparison logic stays the same.

How it works

  1. Run on a specified interval. This automation starts at the scheduled time someone configured, such as daily or weekly, to begin the search.
  2. Retrieve all Lookup Table entries. Query the Lookup Table to fetch every entry so the automation can compare all integer values stored in the table.
  3. Identify the maximum integer. Loop through each entry from the Lookup Table to find and isolate which item contains the highest integer value.
  4. Log the result to the job report. Write the maximum integer found to the job report so someone can review the outcome and verify the automation completed.