Automated Weekly Project Cost Reports with MySQL and Outlook HTML Emails
Automates weekly MySQL queries for projects missing cost data, generates HTML reports, and sends targeted Outlook emails based on cost centers like Retail, Service, and Projects.
This n8n workflow automates the generation and distribution of weekly project cost reports by querying a MySQL database for open external projects lacking budgeted_project_cost data. It triggers every Monday at 8 AM, fetches relevant project details such as project_name and cost_center, and uses a Switch node to route data to specific Outlook email nodes based on cost_center values (e.g., Retail, Service, Projects). Each Outlook node sends a formatted HTML email report to the appropriate team, dynamically injecting values with mustache templates like {{ $json.project_name }}.
Key benefits include significant time savings for finance and operations teams by eliminating manual reporting, ensuring timely identification of missing cost data to prevent budget overruns, and providing customizable, professional HTML emails without needing AI or complex coding. It's ideal for businesses managing projects across multiple cost centers, integrating seamlessly with existing MySQL databases and Microsoft Outlook via OAuth2.
Setup is straightforward: configure MySQL credentials and the SQL query, set up Outlook OAuth2, adjust Switch conditions for your cost centers, and customize HTML templates. This no-frills workflow scales easily for larger organizations, supports SELECT-only permissions for security, and runs reliably on schedule to keep teams proactive on expense management.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
YouTube Creator Pipeline
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $14.99 for this one alone.
View bundleSecure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Miscellaneous workflows
- Get notified about Notion updates via Gmail$3.99
- 🌸 CFO Sunrise: Morning Brief for Household CEOs$14.99
- Analyze and audit website SEO$2.99
- Markdown Timesheet Report Generator$9.99
- Interactive n8n Lesson 1: Data Flow, Execution & Debugging$12.99
- Zillow Property Scraper by Location via Bright Data & Google Sheets$22.99
More from Viktor Guerrero
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.