Skip to main content
Use googleDrive to manage files, folders, permissions, comments, replies, and shared drives. Drive triggers monitor one file, folder, or shared drive through Google Workspace Events.

Connect Google

Connect a Google Account when you deploy. Automate.ax requests the narrowest scope that satisfies each callable. Google may require app approval for access outside files created or explicitly opened with the app. File renaming, description and starred-state updates, folder moves, trashing, and restoring also accept drive.metadata. Use this permission for metadata operations on existing files without granting file-content access. These actions continue to request drive.file by default for app-authorized files. Downloading, exporting, uploading, and permanently deleting files require their own content or file-management permissions.

Create the routing folders once

Add this temporary setup automation, deploy it, and select Create routing folders from the dashboard. Copy the two folder IDs from the run’s action results, then remove the setup automation.
automations/setup-drive-routing.automation.ts

Move new Drive files

Replace both constants with the IDs returned by the setup run before deploying this automation.
Use a Drive resource ID or standard Drive, Docs, or Slides URL as resource. Set resourceType: "drive" for a shared-drive ID or a shared-drive URL copied from Google Drive; copied shared-drive URLs use the same /folders/ path as folder URLs. Only URLs containing /drives/ identify shared drives automatically. Shared-drive subscriptions always include descendants. Subscriptions that include resource data expire after four hours; Automate.ax renews them automatically.

Exports

  • googleDrive contains the packaged Google Drive actions and triggers.
  • googleAccount("name") selects a named Google connection.
  • getGoogleDriveApi creates the authenticated Google Drive API helper for a custom account-backed action.

Triggers

Actions