Create date range variables on a schedule
Recipe ToolsMarketing
What it does
When Clock triggers every 5 minutes, this automation sets variables for the current date, start date, end date, and scheduled time. The job report logs each cycle so someone can verify the automation ran and track execution history.
Who it's for
Operations teams who need date variables refreshed regularly for downstream workflows.
How teams use this
Feed date ranges to scheduled reports
Use the refreshed date variables in downstream workflows that generate daily or weekly reports. The variables update every 5 minutes so reports always pull the correct date range.
Sync date logic across multiple workflows
Reference these variables in other automations so all workflows use the same current date and date range. Add additional workflows that reference the variables to keep calculations consistent across the entire system.
Audit automation execution timing
Check the job report logs to confirm the automation ran on schedule and to troubleshoot any delays. Someone can review the report to verify each 5-minute cycle completed as expected.
How it works
- Fire every 5 minutes. Clock starts this automation on a 5-minute schedule so date variables stay current throughout the day and downstream workflows always reference fresh dates.
- Set current date variable. Clock creates a variable set to today's date so downstream steps can reference the present moment in calculations and comparisons.
- Set date range variables. Clock sets variables for start date, end date, direct start date, direct end date, and scheduled time to support date range logic in other workflows.
- Log cycle to job report. Clock records each 5-minute cycle in the job report so someone can verify the automation is running and review the complete execution history.