Auto-archive Hubspot tickets when Drive files are deleted

When your team trashes a completed ticket file in Drive, Notis automatically archives the ticket in Hubspot to keep both systems clean.

Trigger

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

Hubspot logo

Action

Archive ticket

Archives a hubspot ticket by its id.

Why this helps

Your team organizes resolved tickets in Drive by archiving files, but Hubspot tickets stay open and clutter the view.

  • Keep Hubspot ticket view focused on active work
  • Reduce manual ticket archiving when files are resolved
  • Automate compliance-friendly record cleanup

Setup

Build it in a few focused steps.

  • 1Connect Google Drive and Hubspot to Notis.
  • 2Create an automation: 'When I trash a completed ticket file in Drive, archive the matching ticket in Hubspot.'
  • 3Select the trigger: 'File Deleted or Trashed' in your tickets folder.
  • 4Set your notification channel.
  • 5Test by trashing a test ticket file in Drive and verifying the ticket status changes to archived in Hubspot.

Questions about this workflow

How does Notis match Drive files to Hubspot tickets?

Notis reads the filename or file properties. Include ticket ID or subject in your file name or document metadata so Notis can match them.

What if the file name doesn't match the ticket exactly?

You can tell Notis what matching rule to use (e.g., 'match by ticket ID in the filename' or 'match by file creation date and team member').

Can this work for other object types like deals or quotes?

Yes. Use the same automation structure for deals, quotes, or any object type you want to keep in sync with Drive.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

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

Google Drive logo

Google Drive triggers

Hubspot logo

Hubspot actions

Comment Added (Docs/Sheets/Slides)

Triggers when a new comment is added to Google Docs, Sheets, or Slides.

TriggerPolling

Add asset association

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

ActionInstant

File Created

Triggers when a new file is created in Google Drive.

TriggerPolling

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

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

TriggerPolling

Archive email

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

ActionInstant

File Shared (Permissions Added)

Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.

TriggerPolling

Archive a batch of emails by ID

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

ActionInstant

File Updated

Triggers when a file's metadata or content changes in Google Drive.

TriggerPolling

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

Google Drive Changes

Triggers when changes are detected in a Google Drive.

TriggerPolling

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

New File Matching Query

Triggers when a new Google Drive file matches a provided query. This is the legacy query-centric trigger: it preserves Drive API query config such as ``corpora`` / ``driveId`` aliases and emits the historical ``file_matching_query`` event type. ``FileCreatedTrigger`` covers the broader "new file" case and emits ``file_created``.

TriggerPolling

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 Google Drive and Hubspot. Any combination from 985+ 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.