Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Files & Cloud Storage

Files & Cloud Storage

Send SAP XML sales orders from GoHighLevel to a warehouse via Make.com SFTP

When an API call/webhook arrives, it manages files.

What it does

## 📦 Send Order to Warehouse via SFTP ### How it works When a sales opportunity is created or updated in GoHighLevel (GHL), a webhook fires and triggers this workflow. The opportunity ID is used to pull the full opportunity details from the LeadConnector API, then fetch all associated product records. Products are split out individually, filtered to exclude non-product relations, and enriched with their full product details — including SAP codes and quantities. A code node assembles a standards-compliant SAP XML sales order with a generated order number, today's date, and one sales line per product. The XML is converted to a binary file and posted to a Make.com webhook, which handles the final SFTP upload to the warehouse ERP system. ### Setup steps 1. Set the Webhook node to receive POST requests from your GHL workflow trigger. 2. Add your LeadConnector API key to the Authorization header in the three GHL HTTP Request nodes. 3. In the Build SAP XML Sales Order code node, update the YOUR_SAP_CUSTOMER_NUMBER, YOUR_SAP_COMPANY_CODE, and YOUR_SAP_PARTNER_ID placeholders to match your SAP configuration, or replace with dynamic GHL account lookups. 4. Create a Make.com scenario that receives a file via webhook and uploads it to your warehouse SFTP server. Replace YOUR_MAKE_SCENARIO_WEBHOOK_ID in the final HTTP node. 5. Test end-to-end with a real opportunity ID using the webhook test URL.

The steps

  1. Webhook
  2. Fetch Opportunity from GHL
  3. Fetch Related Records from GHL
  4. Split Out
  5. Fetch Product Record Details
  6. Filter
  7. Build SAP XML Sales Order
  8. POST XML to Make.com SFTP Webhook
  9. Convert XML to Binary

Similar automations