Automated Weekly Project Cost Reports with MySQL and Outlook HTML Emails
Automated Weekly Project Cost Reports with MySQL and Outlook HTML Emails
π§ Use Case
Need to keep your finance or operations team updated on missing project costs?
This practical automated report workflow does the job without AI β and saves hours weekly.
Runs on a weekly schedule Queries your MySQL database for projects missing cost data Filters by budgeted_project_cost IS NULL Generates a clean HTML email report Sends it through Microsoft Outlook to relevant teams
π How It Works
Schedule Trigger β Runs every Monday at 8 AM MySQL Node β Connects and runs SQL to fetch project data missing budgeted_project_cost Switch Node β Routes logic based on cost_center (e.g., Retail, Service, Projects) Outlook Nodes β Sends formatted HTML emails; each node handles a specific group Dynamic Content β Inject values using mustache tags like {{ $json.project_name }}
π§ Setup Instructions
MySQL Setup: Ensure the MySQL node is connected using a valid credential set: Hostname/IP Port (default: 3306) Database name Username with SELECT permissions Password Query Example: SELECT project_name, cost_center FROM tabProject WHERE status = 'Open' AND project_type = 'External' AND budgeted_project_cost IS NULL;
Outlook Configuration: Connect your Microsoft Outlook node using OAuth2 credentials. Rename each Outlook node clearly (e.g., Send Email - Retail, Send Email - Service).
Switch Node: Modify cost center values as needed to match your organization (e.g., 'Retail', 'Service', 'Projects').
HTML Email Formatting: Customize the HTML message body using inline styles and mustache syntax. Sample: Missing Budgeted Cost Report
Project: {{ $json.project_name }}
Cost Center: {{ $json.cost_center }}
Recipients: Replace amjid@amjidali.com with the actual email addresses of the concerned teams.
π Read More
π Why Simple Workflows Work
πΊ Demo & Tutorial
π₯ Watch the video walkthrough:
https://youtube.com/@syncbricks
π€ About the Creator
Amjid Ali
π amjidali.com
π n8n Book
π Learn n8n
> βStart simple, scale smart. Even basic workflows like this can save your team hours!β β Amjid Ali
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
π° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments