πŸ”¬ Google Sheets duplication & enrichment automation

⚑ 922 views Β· πŸ”¬ Document Extraction & Analysis

Description

How it Works

This workflow reads sheet details from a source Google Spreadsheet, creates a new spreadsheet, replicates the sheet structure, enriches the content by reading data, and writes it into the corresponding sheets in the new spreadsheet. The process is looped for every sheet, providing an automated way to duplicate and transform structured data.

🎯 Use Case

Setup Instructions

1. Required Google Sheets

2. API Credentials

3. Configure Fields in Write Sheet

πŸ” Workflow Logic

  1. Manual Trigger: Starts the flow on user demand.
  2. Create New Spreadsheet: Generates a blank spreadsheet.
  3. HTTP Request: Retrieves all sheet names from the source spreadsheet.
  4. JavaScript Code: Extracts titles and metadata from the HTTP response.
  5. Loop Over Sheets: Iterates through each sheet retrieved.
  6. Delete Default Sheet: Removes the placeholder β€˜Sheet1’.
  7. Create Sheets: Replicates each original sheet in the new document.
  8. Read Spreadsheet1: Pulls data from the matching original sheet.
  9. Write Sheet: Appends the data to the newly created sheets.

🧩 Node Descriptions

Node NameDescription
Manual TriggerStarts the workflow manually by user test.
Create New SpreadsheetCreates a new Google Spreadsheet for output.
HTTP RequestFetches metadata from the source spreadsheet including sheet names.
CodeProcesses sheet metadata into a list for iteration.
Loop Over ItemsLoops over each sheet to replicate and populate.
Google Sheets2Deletes the default β€˜Sheet1’ from the new spreadsheet.
Create SheetsCreates a new sheet matching each source sheet.
Read Spreadsheet1Reads data from the source sheet.
Write sheetWrites the data into the corresponding new sheet.

πŸ› οΈ Customization Tips

πŸ“Ž Required Files

File NamePurpose
My_workflow_4.jsonMain workflow JSON file for sheet duplication and enrichment

πŸ§ͺ Testing Tips

🏷 Suggested Tags & Categories

#GoogleSheets #Automation #DataEnrichment #Workflow #Spreadsheet

πŸ”— Nodes Used

Google Sheets, HTTP Request

πŸ“₯ Import

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

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