Generate a variable on a scheduled interval

Recipe ToolsMarketingDeveloper Tool

What it does

When a scheduled time arrives, this automation creates a variable with Js Eval. The result is logged to the job report so someone can review what was generated.

Who it's for

Engineering teams who need to run scheduled tasks and log the output for monitoring.

How teams use this

Monitor a scheduled data refresh

Run this automation daily at a set time to generate a status variable and log it. The team can check the job report to confirm the task completed without manual checks.

Send formatted output to Slack

Extend this automation to post the formatted variable to a Slack channel instead of only logging it. Add a Slack step after Js Eval so the team sees updates in real time.

Run the task at different intervals

Retarget this automation to run on a different schedule, such as hourly or weekly, by changing the Clock interval. The variable creation and logging stay the same.

How it works

  1. Wait for the scheduled time. At the interval you set in Clock, the automation starts and moves to the next step to create the variable.
  2. Create and format the variable. Js Eval creates a variable and executes JavaScript code to format it for Slack, then logs the message to the job report so someone can verify the output.