Remove a resthook after source deletion
Close downstream event subscriptions when their source document no longer exists.
Trigger
Document Deleted
Triggers when an existing Google Doc is deleted (moved to trash). This trigger monitors Google Docs and fires when documents are trashed.
Action
Delete Resthook Subscription
Tool to delete a specific resthook subscription by id. use after confirming the subscription identifier when the webhook is no longer needed.
Why this helps
Orphaned subscriptions keep monitoring resources that have been deleted.
- Reduces orphaned subscriptions
- Keeps monitoring intentional
- Creates a cleanup report
Setup
Build it in a few focused steps.
- 1Connect Google Docs and Affinda in Notis once.
- 2Create an automation named Deleted source resthook cleanup.
- 3Tell Notis to identify and delete the linked Affinda resthook subscription after confirming the source document was trashed.
- 4Pick Document Deleted as the trigger.
- 5Choose a report channel and test with a disposable subscription.
Questions about this workflow
What must be known to delete the subscription?
The instruction needs an unambiguous Affinda resthook subscription identifier.
Will unrelated resthooks be affected?
No. Notis should delete only the confirmed linked subscription.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Docs to Affinda. A trigger fires from one place; an action lands in another.
Google Docs triggers
Affinda actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Batch Update Annotations
Tool to update multiple annotations in one request. use when you need to modify parsed values or other fields across many annotations at once.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Create Collection
Tool to create a new collection. use after you have a valid workspace id and want to group documents by a specific extractor within that workspace.
New Document Created
Triggers when a new Google Doc is created. This trigger monitors Google Docs and fires when new documents are detected. Uses timestamp filtering to efficiently poll for new documents.
Create Document
Tool to upload a new document for parsing. use when you have the document file or a public url and need to extract structured data immediately.
Document Deleted
Triggers when an existing Google Doc is deleted (moved to trash). This trigger monitors Google Docs and fires when documents are trashed.
Create Organization
Tool to create a new organization. use when you have a unique organization name and want to group resources under it.
Document Placeholder Filled
Triggers when a Google Doc's plain text changes such that a configured placeholder token/pattern is no longer present (i.e., the document has been filled in). This trigger monitors a specific Google Doc and fires when a placeholder pattern that was previously present is no longer found in the document's plain text.
Create RESTHook Subscription
Tool to create a new resthook subscription. use after confirming your webhook endpoint is ready to receive document event notifications.
Document Search Update
Triggers when a Google Doc matching a user-defined search query is newly created or updated since the last poll. This trigger uses timestamp filtering to efficiently monitor documents.
Create Tag
Tool to create a new tag. use when you need to label documents in a specific workspace.
Document Structure Changed
Triggers when a Google Doc's structure changes (headers/footers added/removed, tables/images count changes). This trigger monitors a specific document for structural changes like: - Headers added or removed - Footers added or removed - Tables added or removed - Images (inline objects) added or removed - Positioned objects added or removed - Footnotes added or removed
Create Validation Result
Tool to create a validation result. use when recording validation outcomes for a document after parsing.
Document Updated
Triggers when an existing Google Doc is updated or modified. This trigger monitors Google Docs and fires when documents are updated.
Create Workspace
Tool to create a new workspace. use when you need to programmatically create a workspace container within an organization.
Connect any two apps with Notis in the middle.
Google Docs and Affinda, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Affinda.