π€ 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:
- 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
π Nodes Used
Google Sheets, Gmail, Google Sheets Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File