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 acceptdrive.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.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
googleDrivecontains the packaged Google Drive actions and triggers.googleAccount("name")selects a named Google connection.getGoogleDriveApicreates the authenticated Google Drive API helper for a custom account-backed action.
Triggers
- On access proposal created
- On access proposal resolved
- On approval cancelled
- On approval completed
- On approval created
- On approval reset
- On approval reviewer responded
- On approval reviewers changed
- On comment created
- On comment deleted
- On comment edited
- On comment reopened
- On comment resolved
- On Drive event
- On file content changed
- On file created
- On file deleted
- On file moved
- On file renamed
- On file trashed
- On file restored from trash
- On permission created
- On permission deleted
- On permission edited
- On reply created
- On reply deleted
- On reply edited
Actions
- Copy file
- Create comment
- Create folder
- Create permission
- Create reply
- Create shared drive
- Delete comment
- Delete file
- Delete permission
- Delete reply
- Delete shared drive
- Download file
- Export file
- Get account
- Get comment
- Get file
- Get permission
- Get reply
- Get shared drive
- Hide shared drive
- List comments
- List files
- List permissions
- List replies
- List shared drives
- Move file
- Reopen comment
- Resolve comment
- Restore file
- Trash file
- Restore hidden shared drive
- Update comment
- Update file
- Update permission
- Update reply
- Update shared drive
- Upload file