Send job reports on schedule to Gmail
Recipe ToolsMarketingDocument/FileSales EnablementProductivity
What it does
When a scheduled trigger fires every 5 minutes, this automation searches job history and adds rows to a Google Sheet. Someone receives the compiled report via Gmail with the latest job data attached.
Who it's for
Operations teams who need automated job reports delivered on schedule.
How teams use this
Deliver hourly job reports to leadership
Run this automation every hour instead of every 5 minutes so executives receive regular summaries of job performance. The steps stay the same and only the schedule changes.
Route jobs to sheets by status
Add a condition to filter jobs by status and route them to different Google Sheets for separate tracking. This requires checking the job status before adding rows to the appropriate sheet.
Include attachments from Google Drive
Attach the downloaded file to the Gmail message so the report arrives with supporting documents included. The flow remains the same with only the email step modified.
Alert teams when jobs fail
Add a condition to check job status and send alerts only when failures occur. This requires filtering for failed jobs and notifying the team immediately of issues.
How it works
- Run on a 5-minute schedule. This automation starts every 5 minutes so job reports are gathered and sent on a regular cadence without manual intervention.
- Search job history. Search the job history in Workato App to gather all the data that will be included in the report for this cycle.
- Add rows to the spreadsheet. Add multiple rows to a Google Sheet with the job data so the report is logged and tracked over time for reference.
- Download the report file. Download file contents from Google Drive to prepare the supporting document that will be attached to the email.
- Send report via email. Send the job report via Gmail with the downloaded file attached so someone receives it in their inbox with all supporting data.