Generate item list on a schedule with Ruby

Recipe ToolsDeveloper Tool

What it does

When a scheduled time arrives, this automation runs Ruby code to scan for items. It accumulates matching items into a list that someone can use for batch processing or distribution.

Who it's for

Operations teams who need to gather items at regular intervals without manual collection.

How teams use this

Gather daily records for review

Scan for new records each morning and build a list that goes to the team inbox. The team reviews one email instead of checking multiple places.

Monitor system logs hourly

Run the scan every hour to find errors or warnings in logs and send them to a security alias. The team stays aware of issues without manual checks.

Filter items by a condition before accumulating

Add a condition to the Ruby code so only items that meet specific criteria are added to the list. This reduces noise and keeps the email focused on what matters.

How it works

  1. Run on a specified interval. This automation starts at the scheduled time you set, such as daily at 9 AM or every hour on the hour.
  2. Execute Ruby code to scan. Workato Custom Code runs the Ruby scan to find and process items that match your defined criteria from the source system.
  3. Accumulate items to email alias list. For each item found by the scan, Workato Custom Code adds it to an email alias list so all results are collected in one place.