Make a Dub link when you share a Drive file
A new sharing permission can prompt Notis to create a Dub link for the file, keeping link setup close to the moment you grant access.
Trigger
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.
Action
Upsert a Link
Tool to create or update a short link in Dub. Use when you need to create a new short link or update an existing one. If the link already exists (matching domain and key), it will be updated; otherwise, a new link will be created.
Why this helps
After sharing a Drive file, you may still need to create a separate short link and keep track of it.
- Create a short link when sharing permissions change
- Keep link creation close to the sharing moment
- Make file links easier to distribute and review
Setup
Build it in a few focused steps.
- 1Connect Google Drive and Dub once in the Notis portal.
- 2Create a named automation in Notis.
- 3Give Notis one instruction to create a Dub short link for each Drive file that receives new sharing permissions.
- 4Choose the File Shared trigger and select a destination for run reports.
- 5Test by sharing one real file and check the Dub link.
Questions about this workflow
What counts as a trigger?
The workflow starts when Google Drive reports that new sharing permissions were granted to a file or folder.
Does creating the Dub link change Drive access?
No. Drive permissions control access. The Dub link points to the file and does not grant or revoke permissions.
Can I use a specific Dub domain?
You can tell Notis which available Dub domain to use in the instruction. The domain must be verified in Dub before it can be used for shortening.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Drive to Dub. A trigger fires from one place; an action lands in another.
Google Drive triggers
Dub actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Bulk Delete Links
Tool to delete multiple short links in bulk from Dub. Use when you need to remove multiple links at once. Maximum of 100 link IDs per request. Non-existing IDs are silently ignored.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Bulk Update Links
Tool to update multiple short links in bulk. Use when you need to apply the same updates to multiple links at once by specifying link IDs or external IDs.
Comment Added (Docs/Sheets/Slides)
Triggers when a new comment is added to Google Docs, Sheets, or Slides.
Create Domain
Tool to add a domain to a Dub workspace. Use when you need to create a new domain for shortening links. The domain must be verified before it can be used for link shortening.
File Created
Triggers when a new file is created in Google Drive.
Create Tag
Tool to create a new tag in Dub. Use when you need to organize links by creating custom tags. Tags help categorize and filter links for better organization.
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Delete Domain
Tool to delete a domain from your Dub workspace. Use when you need to permanently remove a domain. The domain must exist and be owned by your workspace.
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.
Delete Tag
Tool to delete a tag from Dub. Use when you need to remove a tag that is no longer needed.
File Updated
Triggers when a file's metadata or content changes in Google Drive.
Get Link Info
Tool to retrieve details of a specific short link from Dub. Use when you need to get comprehensive information about a link including its configuration, targeting settings, and performance metrics.
Google Drive Changes
Triggers when changes are detected in a Google Drive.
Get Links
Tool to retrieve a paginated list of links for the authenticated workspace. Use when you need to list links with optional filtering by domain, tags, folder, search terms, or user. Supports pagination and sorting for efficient retrieval of large link collections.
Connect any two apps with Notis in the middle.
Google Drive and Dub, 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 Dub.