Skip to main content
googleDrive.onFileCreated starts an automation when a file is added on the selected Drive resource.

Example

Options

resource must identify a folder or shared drive. It accepts a folder or shared-drive ID or URL. Set resourceType: "drive" for a shared-drive ID or a shared-drive URL copied from Google Drive; only URLs containing /drives/ identify shared drives automatically. includeDescendants includes nested folders and is always enabled for shared drives. account optionally selects a Google Account.

Trigger data

Returns the semantic eventType, action, resourceType, provider eventId, and occurredAt. Resource-specific fields can include fileId, resourceId, resourceIds, parent IDs, MIME type, version, status, due time, and participant email addresses. Deleted resources can contain only identifiers.