Route records based on third Wednesday check
Recipe ToolsDeveloper ToolMarketing
What it does
When a record updates in Trackvia, this automation runs Ruby code to check if today is the third Wednesday. It routes the job forward only when the date matches, or stops it otherwise.
Who it's for
Operations teams who need workflows to run only on the third Wednesday of each month.
How teams use this
Run workflows only on third Wednesday
Attach this automation to any workflow that should execute only on the third Wednesday of the month. The job stops silently on other dates, so the parent workflow never runs.
Gate monthly reporting tasks
Use this check before a report generation or data sync step so the task runs once a month on a predictable date. Teams know exactly when to expect the output.
Check for a different day of week
Modify the Ruby code to check for a different day, such as the first Monday or the last Friday of the month. Only the code logic changes, and the rest of the automation stays the same.
How it works
- Monitor for record updates. When a record updates in the Trackvia view, this automation starts in real time.
- Check if date is third Wednesday. Workato Custom Code runs Ruby logic to determine whether today is the third Wednesday of the month and returns true or false.
- Stop job if date does not match. If the result from step 2 is not true, stop the job so no further steps run and the workflow halts.
- Log confirmation to job report. If the date is the third Wednesday, Workato Custom Code logs a message to the job report to confirm the condition was met.