Перейти к содержанию
НОВОЕМаркетплейс и trig8n Agent: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / CRM и воронка продаж

CRM и воронка продаж

Копирование позиций из выигранных сделок HubSpot в новые сделки с уведомлением в Slack

Запускается по вебхуку с ID сделок, копирует товарные позиции из выигранной сделки HubSpot в新 созданную сделку и отправляет уведомление в Slack.

Что делает

# 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

Шаги

  1. Retrieve deals Ids
  2. Get deal won line items
  3. Slack
  4. Get batch SKUs from line items
  5. Get Batch Product IDs by SKUs
  6. Create Batch line items based on productId and associate to
  7. Webhook

Похожие автоматизации