Replicate Line Items on New Deal in HubSpot Workflow
Configured with HTTP Request, Slack, Webhook. Review the connections and setup before adapting this template.
Node categories in this workflow
- Transform
- Web / API
- Messaging
- Trigger
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Retrieve deals Ids | Transform | Edit Fields | See node parameters |
| Get deal won line items | Web / API | HTTP Request | POST |
| Slack | Messaging | Slack | See node parameters |
| Get batch SKUs from line items | Web / API | HTTP Request | POST |
| Get Batch Product IDs by SKUs | Web / API | HTTP Request | POST |
| Create Batch line items based on productId and associate to deals | Web / API | HTTP Request | POST |
| Webhook | Trigger | Webhook | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
hubspotAppTokenhubspotOAuth2ApislackApi
Workflow notes
Replicate Line Items on New Deal in HubSpot Workflow
Replicate Line Items on New Deal in HubSpot Workflow
Use Case
This workflow solves the problem of manually copying line items from one deal to another in HubSpot, reducing manual work and minimizing errors.
What this workflow does
- Triggers upon receiving a webhook with deal IDs.
- Retrieves the IDs of the won and created deals.
- Fetches line items associated with the won deal.
- Extracts product SKUs from the retrieved line items.
- Fetches product details based on SKUs.
- Creates new line items for the created deal and associates them.
- Sends a Slack notification with success details.
Step up steps
- Create a HubSpot Deal Workflow
1.1 Set up your trigger (ex: when deal stage = Won)
1.2 Add step : Create Record (deal)
1.3 Add Step : Send webhook. The webhook should be a Get to your n8n first trigger. Set two query parameter :
deal_id_wonas the Record ID of the deal triggering the HubSpot Workflowdeal_id_createas the Record ID of the deal created above. Click Insert Data -> The created object
- Set up your HubSpot App token in HubSpot -> Settings -> Integration -> Private Apps
- Set up your HubSpot Token integration using the predefined model.
- Set up your Slack connection
- Add an error Workflow to monitor errors
Sticky Note1
Step 1. Triggered by HubSpot Workflow
Sticky Note2
Step 2. Set the Ids of the deal won and the deal created
Sticky Note3
Step 3.
- Get line items IDs from the deal won
- Retrieve the SKUs from those line items
- Get product based on SKUs
- Create new line items from Product IDs and associate to the new deal
Replicate Line Items on New Deal in HubSpot Workflow
Replicate Line Items on New Deal in HubSpot Workflow
Purpose and structure
This folder contains the Replicate Line Items on New Deal in HubSpot Workflow workflow. Its executable nodes use httpRequest, set, slack, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Webhook
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Http/0550_HTTP_Slack_Create_Webhook.json MIT; preserve source notices.