Sync NPD product pricing from Google Sheets to GoHighLevel custom objects
Quick overview This workflow receives two Google Sheets IDs via a webhook, filters the NPD products list, calculates pricing from a separate margin sheet, and then creates matching product and price book entry records in GoHighLevel custom objects using the LeadConnector API.
How it works Receives a POST webhook containing the NPD products spreadsheet ID and the margin spreadsheet ID. Reads all rows from the NPD Google Sheet and keeps only products where the “SKU status” field contains “NPD”. Processes the filtered products one at a time and, for each product, loads all rows from the margin Google Sheet. Calculates a sell price by matching margin rows by brand and outputs either “Bespoke” pricing (one entry per customer margin rule) or “Standard” pricing (uses wholesale price). Routes each calculated item by pricing type and creates a product record in the GoHighLevel custom object custom_objects.products_1 via the LeadConnector API. Creates a corresponding price book entry record in the GoHighLevel custom object custom_objects.price_book_entry and continues until all items are processed.
Setup Create a Google Sheets OAuth2 credential in n8n and select it in both Google Sheets nodes. Add your GoHighLevel (LeadConnector) Private Integration token to the Authorization header (Bearer YOUR_GHL_API_TOKEN) in all active HTTP Request nodes. Replace YOUR_GHL_LOCATION_ID in the JSON body of each HTTP Request node with your GoHighLevel location ID. Ensure your Google Sheets columns match the fields used in the filter (“SKU status”) and in the pricing calculation (brand, RRP/wholesale, and margin columns such as Customer/Brand/% off RRP), then adjust the pricing code if needed. Send a POST request to the webhook URL with a JSON body containing both spreadsheetId and marginSpreadsheetId values.
Related Templates
Convert JSON Objects to Base64 Strings with File Processing
Encode JSON to Base64 String in n8n This example workflow demonstrates how to convert a JSON object into a base64-encod...
Automate Daily YouTrack Task Summaries to Discord by Assignee
Daily YouTrack In-Progress Tasks Summary to Discord by Assignee Keep your team in sync with a daily summary of tasks cu...
Automate Free IP Analysis: NixGuard AI Summaries & Wazuh Integration
Supercharge Your Security Operations for Free Stop wasting time manually investigating suspicious IP addresses. This wo...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments