Automate Project Cost Auditing with MySQL & Outlook in n8n

This n8n workflow automatically detects open external projects with missing budgeted costs from a MySQL database and sends tailored email alerts to respective cost center teams via Microsoft Outlook, preventing costly budgeting oversights.
mySql
scheduleTrigger
switch
+1
Workflow Identifier: 1574
NODES in Use: MySQL, Schedule Trigger, Switch, Microsoft Outlook

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does ⚙️

This workflow finds all open external projects that have no budgeted cost set.

It groups them by company and cost center, then sends an email to each cost center team to notify missing budgets.

The goal is to save time by automating weekly budget checks and improving financial accuracy.

This helps stop errors in reports and delays in decisions when budget data is missing.

It works by using a Schedule Trigger, a MySQL query, routing with a Switch node, and sending emails through Microsoft Outlook nodes.


Inputs, Process, and Outputs

Inputs

  • Project data from a MySQL database with fields like company, cost center, status, and budgeted cost.
  • Weekly trigger signal from the Schedule Trigger node.

Processing Steps

  • Run a SQL query to get active projects with zero budget cost.
  • Group the query results by company and cost center.
  • Use Switch node to split data based on cost center names.
  • Send customized HTML emails to the correct cost center teams via Microsoft Outlook nodes.

Outputs

  • Email notifications sent to cost center owners listing how many projects lack budget info.

Tools and Services Used

  • n8n: Workflow automation platform.
  • MySQL Database: Stores project data queried for missing budgets.
  • Microsoft Outlook API: Sends email alerts.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Download and Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Inside the n8n editor, click on “Import from File”.
  3. Select the downloaded workflow file to load it into your editor.

Step 2: Configure Credentials and Settings

  1. Add your MySQL database credentials to the MySQL node.
  2. Add Microsoft Outlook API credentials to the Outlook nodes.
  3. Check and update cost center email addresses in the Outlook nodes if needed.
  4. Adjust cost center names in the Switch node if your cost centers differ.

Step 3: Test and Activate Workflow

  1. Run the workflow manually once to test data and email sending.
  2. Look at workflow execution logs for errors or missing data.
  3. When satisfied, activate the workflow to run automatically on schedule.
  4. Optionally, monitor initial runs and check email delivery.

Following these steps sets you up for weekly automated budget audits without deep technical work.


Known Edge Cases and Troubleshooting 🔧

Issue: Emails Not Being Sent

Check that cost center names in the Switch node exactly match the database data.

Case or extra spaces can cause routing not to work.

Issue: MySQL Query Errors or Timeouts

Verify database credentials and permissions.

Test the SQL query directly in your database client to make sure it runs without error.


Customization Ideas ✏️

  • Add more cost centers by extending the Switch node and Outlook nodes accordingly.
  • Change email recipients to match your team contacts by editing the Outlook nodes fields.
  • Modify the schedule trigger to run more or less often.
  • Extend the SQL query to include more project details or filter differently.

Pre-production Checklist ✅

  • Test the MySQL query independently for correct results and permissions.
  • Verify Switch node outputs match your actual cost center names exactly.
  • Send sample emails to verify proper formatting and delivery.
  • Confirm the workflow schedule matches your reporting needs.

Deployment Guide

Activate the workflow in n8n after thorough testing.

Check execution logs to catch and debug any errors.

Store all credentials securely and limit access to keep financial notifications safe.

Setting up error notifications or logs will help catch issues early.

If running on your own server, consider self-host n8n for security and control.


Summary

✓ This workflow saves time by automating weekly budget audits.

✓ It finds projects missing budgets and alerts cost center teams by email.

✓ Helps improve financial reports and speeds decision making.

→ User gets ready-to-run automation requiring minimal setup.

→ Emails clearly specify which cost centers need attention.


Frequently Asked Questions

The workflow runs a SQL query on the MySQL database to find all active external projects with zero budgeted cost.
Data for that cost center will not be routed correctly, so email alerts may not be sent for those projects.
Yes, the Microsoft Outlook nodes can be replaced with Gmail or SMTP nodes by updating the credentials and settings.
Yes, n8n allows adding error handling or logging nodes and checking execution logs to monitor workflow errors.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free