🀝 Validate and create LEDGERS contacts from Google Sheets with error handling

⚑ 122 views · 🀝 CRM & Sales Operations

Description

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:

➑ 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

πŸ”— Nodes Used

Google Sheets, Gmail, Google Sheets Trigger

πŸ“₯ Import

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

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