Templates / Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools

Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools

Needs changes

by Avkash Kakdiya ✓ · 1,327 views · created 2025-09-24 · Document Extraction

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 14 nodes and runs on a schedule (every week). Along the way it connects Google Sheets, Postgres, MongoDB and Microsoft SQL and 1 more.

How it runs

Trigger: On a schedule (every week).

  1. Google Sheets: uses Google Sheets
  2. Postgres: select
  3. MongoDB: uses MongoDB
  4. Microsoft SQL: run a query
  5. Google Analytics: work with user activity
  6. Add Sheets Source ID (Function): runs custom JavaScript (legacy Function node)
  7. Add PostgreSQL Source ID (Function): runs custom JavaScript (legacy Function node)
  8. Add MongoDB Source ID (Function): runs custom JavaScript (legacy Function node)
  9. Add SQL Server Source ID (Function): runs custom JavaScript (legacy Function node)
  10. Add Analytics Source ID (Function): runs custom JavaScript (legacy Function node)

…plus 3 more steps. See the full node list below.

Services it uses

Google SheetsPostgresMongoDBMicrosoft SQLGoogle Analytics

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in ⚙️ Process Merged Data, Add Sheets Source ID, Add PostgreSQL Source ID…: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
⚙️ Process Merged Data, Add Sheets Source ID, Add PostgreSQL Source ID, Add SQL Server Source ID, Add MongoDB Source ID, Add Analytics Source ID
Code node, mode 'Run Once for All Items'

Nodes used (8)

From the author

How it works This workflow consolidates data from five different systems — Google Sheets, PostgreSQL, MongoDB, Microsoft SQL Server, and Google Analytics — into a single master Google Sheet. It runs on a scheduled trigger three times a week. Each dataset is…

Excerpt from Avkash Kakdiya's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.