← All N8N workflows
Messaging & emailHTTP RequestEdit FieldsSlackWebhook

Replicate Line Items on New Deal in HubSpot Workflow

Configured with HTTP Request, Slack, Webhook. Review the connections and setup before adapting this template.

Workflow preview
TransformRetrieve deals IdsEdit FieldsWeb / APIGet deal won line itemsHTTP RequestMessagingSlackSlackWeb / APIGet batch SKUs fromline itemsHTTP RequestWeb / APIGet Batch Product IDsby SKUsHTTP RequestWeb / APICreate Batch line itemsbased on productId and…HTTP RequestTriggerWebhookWebhook

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Retrieve deals IdsTransformEdit FieldsSee node parameters
Get deal won line itemsWeb / APIHTTP RequestPOST
SlackMessagingSlackSee node parameters
Get batch SKUs from line itemsWeb / APIHTTP RequestPOST
Get Batch Product IDs by SKUsWeb / APIHTTP RequestPOST
Create Batch line items based on productId and associate to dealsWeb / APIHTTP RequestPOST
WebhookTriggerWebhookSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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

  • hubspotAppToken
  • hubspotOAuth2Api
  • slackApi

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

  1. 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_won as the Record ID of the deal triggering the HubSpot Workflow
    • deal_id_create as the Record ID of the deal created above. Click Insert Data -> The created object
  2. Set up your HubSpot App token in HubSpot -> Settings -> Integration -> Private Apps
  3. Set up your HubSpot Token integration using the predefined model.
  4. Set up your Slack connection
  5. 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.

More in Messaging & email