Track purchase order delivery status and amount variances with GoHighLevel
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls services.leadconnectorhq.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Extract Fields (Edit Fields (Set)): sets 6 fields: recordId, dvDate, putAwayDate…
- Calculate Delivery Status + Variance (Code): runs custom JavaScript code
- Update GHL Purchase Order (HTTP Request): calls an HTTP API (PUT)
- Amount Variance > 0? (If): checks a condition and branches into true / false
- Notify Finance — Variance Alert (HTTP Request): calls services.leadconnectorhq.com (POST)
HTTP calls to: services.leadconnectorhq.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
From the author
Quick overview This workflow receives GoHighLevel Purchase Order update webhooks, calculates a delivery status and amount variance from the record’s dates, billing status, and amounts, writes the results back to the Purchase Order custom object, and sends a…