Skip to main content

Validate and create LEDGERS contacts from Google Sheets with error handling

Workflow preview

Workflow preview
100%
Validate and create LEDGERS contacts from Google Sheets with error handling preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Before Using this Template first search LEDGERS in the nodes list and Update! The workflow automates contact creation in LEDGERS from a Google Sheets document, while performing validation checks on...

Best for

  • CRM automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.noop, @ledgers/n8n-nodes-ledgers-cloud.ledgers, n8n-nodes-base.gmail, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by LEDGERS.

Original n8n.io source

1.1 Workflow description

Title
Validate and create LEDGERS contacts from Google Sheets with error handling
Workflow name
Validate and create LEDGERS contacts from Google Sheets with error handling

Before Using this Template first search LEDGERS in the nodes list and Update!

The workflow automates contact creation in LEDGERS from a Google Sheets document, while performing validation checks on contact data to ensure data quality.

Key Features: ✅ Google Sheets Trigger – Polls the sheet every minute to detect new or updated rows. ✅ Contact Name Validation – Checks if the contact name is provided; sends an email notification if missing. ✅ Email & Mobile Validation – Uses custom code to validate the format of email and mobile fields. ✅ Dynamic Routing –

If both email and mobile are valid → proceeds to create the contact in LEDGERS.

If either is invalid → sends an error notification via Gmail. ✅ Mobile Number Formatter – Extracts country code and mobile number for consistent formatting before creating the contact. ✅ LEDGERS API Integration – Creates the contact using the LEDGERS custom node. ✅ Error Handling – If contact creation fails (e.g., duplicate email), sends a failure email with details. ✅ Audit Trail – Appends results (including timestamps) back to Google Sheets for record-keeping.

Extended Field Support This workflow is designed to be flexible. 👉 Along with core fields (Name, Email, Mobile), users can optionally map and include additional fields when creating a contact in LEDGERS, such as:

  • Mobile Country Code
  • GSTIN
  • Business Name
  • Billing Address 1
  • Billing Address 2
  • City
  • State
  • Country

➡ The workflow’s LEDGERS node can be configured to map these fields dynamically from Google Sheets if desired.

Customization ✅ Users can extend or modify the workflow to handle these additional fields without needing structural changes — just by updating the mapping in the LEDGERS node parameters.

Requirements: A connected Google Sheets document with at least Name column

Configured Gmail credentials for sending email notifications

A LEDGERS account with API access and credentials set up in n8n

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Sheets Trigger

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

Block 2 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Replace Me

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 4 - LEDGERS

Type / Role
@ledgers/n8n-nodes-ledgers-cloud.ledgers - ledgers
Config choices
Version 1

Block 5 - Contact Name Error Mail Trigger

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 6 - Contact Name Validation

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Email & Mobile Format Checker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Email & Mobile Validator

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Email/Mobile Error Mail Trigger

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 10 - Mobile Formatter

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Contact Creation Failure Mail Trigger

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 12 - Contact Creation Validator

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Get Created Time

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Update Sheet Contact Creation

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

3. Summary Table

Workflow Validate and create LEDGERS contacts from Google Sheets with error handling
Complexity intermediate
Nodes 14
Categories CRM
Author LEDGERS
Published 16 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4961/4961.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Validate and create LEDGERS contacts from Google Sheets with error handling do?

Before Using this Template first search LEDGERS in the nodes list and Update! The workflow automates contact creation in LEDGERS from a Google Sheets document, while performing validation checks on...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM use case.