Skip to main content

File Change

Triggers a workflow on every change to a file, can be filtered by drive/domain.

info

Automations based on this trigger will search for new events every 5 minutes.

Basic Parameters

ParameterDescription
Drive IDThe ID of the shared drive to list files from.Note: When the drive ID parameter is provided, the following parameters are required:
- Include Items From All Drives parameter must be checked- Supports All Drives parameter must be checked- File Grouping (Corpora) parameter must be set to drive

Advanced Parameters

ParameterDescription
Delegated User OverridePerform the action on behalf of another user, overriding the delegated user defined in the connection.If not specified, the delegated user is the one provided in the connection.Has no effect when using an OAuth connection.NOTE: the connection details are not edited by this input.
File Grouping (Corpora)Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.

Sample Event

{
"kind": "drive#file",
"id": "1zKAe1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o",
"name": "Dummy Doc Testing",
"mimeType": "application/vnd.google-apps.document",
"starred": false,
"trashed": false,
"explicitlyTrashed": false,
"parents": [
"0ABTZxNdM9PHKUk9PVA"
],
"spaces": [
"drive"
],
"version": "6",
"webViewLink": "8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o/edit?usp=drivesdk",
"iconLink": "pe/application/vnd.google-apps.document",
"hasThumbnail": true,
"thumbnailLink": "_Fw-RSn2o&v=1&s=AMedNnoAAAAAY0rhWN-aXG-yciEAzanujLC9O-gVL4NP&sz=s220",
"thumbnailVersion": "1",
"viewedByMe": true,
"viewedByMeTime": "2022-10-11T14:43:37.993Z",
"createdTime": "2022-10-11T14:43:26.115Z",
"modifiedTime": "2022-10-11T14:43:37.993Z",
"modifiedByMeTime": "2022-10-11T14:43:37.993Z",
"modifiedByMe": true,
"owners": [
{
"kind": "drive#user",
"displayName": "Example",
"photoLink": "Example/ult-user=s64",
"me": true,
"permissionId": "06076802466873822834",
"emailAddress": "Example@blinkops.com"
}
],
"lastModifyingUser": {
"kind": "drive#user",
"displayName": "Example",
"photoLink": "https://lh3.googleusercontent.com/a/default-user=s64",
"me": true,
"permissionId": "06076802466873822834",
"emailAddress": "Example"
},
"shared": false,
"ownedByMe": true,
"capabilities": {
"canAcceptOwnership": false,
"canAddChildren": false,
"canAddMyDriveParent": false,
"canChangeCopyRequiresWriterPermission": true,
"canChangeSecurityUpdateEnabled": false,
"canChangeViewersCanCopyContent": true,
"canComment": true,
"canCopy": true,
"canDelete": true,
"canDownload": true,
"canEdit": true,
"canListChildren": false,
"canModifyContent": true,
"canModifyLabels": false,
"canMoveChildrenWithinDrive": false,
"canMoveItemIntoTeamDrive": true,
"canMoveItemOutOfDrive": true,
"canMoveItemWithinDrive": true,
"canReadLabels": false,
"canReadRevisions": true,
"canRemoveChildren": false,
"canRemoveMyDriveParent": true,
"canRename": true,
"canShare": true,
"canTrash": true,
"canUntrash": true
},
"viewersCanCopyContent": true,
"copyRequiresWriterPermission": false,
"writersCanShare": true,
"permissions": [
{
"kind": "drive#permission",
"id": "06076802466873822834",
"type": "user",
"emailAddress": "Example",
"role": "owner",
"displayName": "Example",
"photoLink": "https://lh3.googleusercontent.com/a/default-user=s64",
"deleted": false,
"pendingOwner": false
}
],
"permissionIds": [
"06076802466873822834"
],
"size": "1024",
"quotaBytesUsed": "1024",
"isAppAuthorized": false,
"exportLinks": {
"application/rtf": "https:/Example1H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=rtf",
"application/vnd.oasis.opendocument.text": "https://Examplexport?id=1zKAe1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=odt",
"text/html": "https://docs.googleExampleport?id=1zKAe1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=html",
"application/pdf": "https://docs.googExampleort/Export?id=1zKAe1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=pdf",
"application/epub+zip": "https://docs.google.com/feExample1zKAe1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=epub",
"application/zip": "https://docs.google.com/feExamplee1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=zip",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "https://docs.goExampleoad/documents/export/Export?id=1zKAe1PT8d1pRFt31H4bep_xaiUxxEODdfS_Fw-RSn2o&exportFormat=docx",
"text/plain": "https://docs.google.com/feeds/download/documExample?id=1zKAe1PTExample_Fw-RSn2o&exportFormat=txt"
},
"linkShareMetadata": {
"securityUpdateEligible": false,
"securityUpdateEnabled": true
}
}