Skip to content
Notis

Archive HubSpot deals via webhook trigger

External system detects stale deals. Webhook fires. Notis archives them in HubSpot. Cleanup happens in real time.

Trigger

Webhook received

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

Action

Archive batch of deals by id

Archives a batch of existing deals by their unique hubspot ids, removing them from active views and reports (soft delete); archived deals may be restorable.

Why this helps

You want to archive deals based on external logic—old campaigns, ended partnerships, etc.—but manually archiving is tedious. A script that talks to HubSpot API is overkill. Deals accumulate.

  • External systems can trigger CRM cleanup without coding
  • Pipeline stays lean and meaningful
  • Archiving happens immediately, not on someone's todo list

Setup

Build it in a few focused steps.

  • 1Connect HubSpot to Notis.
  • 2Create an automation with trigger 'Incoming Webhook.'
  • 3Tell Notis: 'When a webhook sends deal IDs, archive them in HubSpot.'
  • 4Notis gives you the webhook URL.
  • 5Post test deal IDs to the URL—they archive in HubSpot instantly.

Questions about this workflow

What JSON should the webhook send?

An array of deal IDs: { 'deal_ids': ['12345', '67890'] }. Notis archives all of them.

Can I add a reason for the archiving?

Yes. Include it in the webhook: { 'deal_ids': [...], 'reason': 'Campaign ended' }. Notis logs it.

Can I soft-delete instead of archive?

Adjust your instruction: 'Mark deals as inactive instead of archiving them.'

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Asana to Hubspot. A trigger fires from one place; an action lands in another.

Asana triggers

Hubspot actions

Attachment Added to Task

Triggers when an attachment is added to a task.

TriggerInstant

Add asset association

Associates an existing asset ('form', 'object list', or 'external web url') with a specified hubspot marketing campaign.

ActionInstant

New Comment on Task

Triggers when a comment is added to a task in a project.

TriggerInstant

Add token to event template

Adds a new custom data token to an existing event template for a specified hubspot application, optionally populating a crm object property if objectpropertyname is provided.

ActionInstant

New Task Created

Triggers when a new task is created in a project.

TriggerInstant

Archive email

Archives the hubspot email specified by `emailid` by moving it to the recycling bin, making it inaccessible unless restored.

ActionInstant

Task Moved to Section

Triggers when a task is moved to a section in a project.

TriggerInstant

Archive a batch of emails by ID

Archives multiple hubspot crm emails by id; ids must exist as archiving is irreversible.

ActionInstant

Tag Added to Task

Triggers when a tag is added to a task. Note: Asana's event structure is inverted for tag events — the resource is the task and the parent is the tag. So parent.gid gives the tag GID.

TriggerInstant

Archive a batch of quotes by id

Archives a batch of existing, non-archived quotes by their ids; this action is irreversible and useful for managing outdated or irrelevant quotes.

ActionInstant

Task Updated

Triggers when a task is updated in a project.

TriggerInstant

Archive batch of companies by id

Archives a batch of companies by their unique ids; targeted companies must exist, not be previously archived, and this api operation is irreversible.

ActionInstant

Archive batch of contacts by id

Archives a batch of existing contacts by their hubspot crm ids, rendering them inactive; this action is irreversible via the api and requires manual restoration or a separate unarchive endpoint.

ActionInstant

Archive batch of deals by id

Archives a batch of existing deals by their unique hubspot ids, removing them from active views and reports (soft delete); archived deals may be restorable.

ActionInstant

Connect any two apps with Notis in the middle.

Not just Asana and Hubspot. Any combination from 1,000+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7 days free trial with 20$ free usage included.
No card. Works with personal or business Hubspot.