🀝 Log e-commerce orders in Google Sheets with monthly tabs & status tracking

⚑ 989 views · 🀝 CRM & Sales Operations

Description

n8n Google Sheets Monthly Order Logger

This n8n template records incoming e-commerce orders into Google Sheets, auto-creates a monthly sub-sheet, and adds a β€œStatus” dropdown so your team can track fulfillment at a glance.


Use cases

Centralize order logs, coordinate shipping across months, trigger customer updates (e.g., WhatsApp/Email) from status changes, and build lightweight ops dashboards.


Good to know


How it works

  1. Order created (Webhook/Trigger): Receives a new order payload from your store/stack.
  2. Config (set spreadsheetId): Stores the target Google Sheets spreadsheetId (copied from the URL).
  3. Get Order Sheets metadata: Lists existing tabs to see if the tab for the current month already exists.
  4. Generate Sheet Name: Computes the sheet name like {{ $now.format('MMMM YYYY') }}.
  5. If (sheet exists?):
    • True β†’ Google Sheets Row values (existing): Prepares the row for append using the month tab.
    • Append to Existing Orders Sheet: Appends the order as a new row.
    • False β†’ Set Sheet Starting row/col: Sets starting cell (e.g., A1) for a brand-new month tab.
    • Create Month Sheet: Creates a new tab named for the current month.
    • Write Headers (A1:…): Writes the column headers.
    • Google Sheets Row values: Maps payload fields into the header order and applies validation to Status.
    • Append to Orders Sheet: Appends the first row into the newly created month tab.

How to use


Requirements


Customising this workflow

πŸ”— Nodes Used

Google Sheets, HTTP Request, Webhook

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup