Google Drive - File moved to trash
Use the Google Drive - File moved to trash start event An event that triggers a workflow to run when it occurs. An example is Box - New file, which triggers the workflow to run when a new file is uploaded to the specified folder. to start your workflow whenever a file is moved to trash in a Google Drive account.
Google Drive has other start events as well as actions. For more information, see Google Drive.
Before you begin:
-
Understand the Start event configuration panel
-
Understand Variables
-
Learn about Handling files in your workflow
Jump to:
Select the Google Drive - File moved to trash start event
- At the top of the designer canvas on the Designer page, click Start event to open the Start event configuration panel.
- In the Start from drop-down list, select, select Google Drive.
-
For Event, select Google Drive - File moved to trash.
Additional fields appear. To configure, see Configure the start event.
Configure the start event
- In the Configuration section, select a Google Drive Connection. If you do not have a connection, see Add a connection.
- Select the Google Drive Drive you want to use.
Caution: Changing the account for the connection, will cause the file moved to trash start event to not start. It will require you to create a new connection and then change the connection on the file moved to trash event.
For more information on the fields and buttons, see Google Drive - File moved to trash start event fields and settings.
Google Drive - File moved to trash start event variables
You can view the start event variables automatically added to the workflow.
- In the designer canvas, click Start event to open the configuration panel.
- Click Show variables.
- ID: The ID of the file.
- Parent ID: The ID of the folder the file is in.
- Drive ID: ID of the shared drive the file resides in.
- Name: The name of the file.
- Path: The path of the file.
- Created On: The date the file was created.
- Download Link: Short lived download URL for the file.
- Is Folder: Boolean variable for if it's a folder.
- MIME Type: The MIME type of the file.
- Modified On: The last date the file was modified.
- Modified By (Email): The email of the user who last modified the file.
- Modified By (Display Name): The display name of the user who last modified the file.
- Size (bytes): The size of the file.
- Starred: Boolean value for whether or not the folder is starred.
- Trashed: Boolean value for whether or not the folder is trashed.
- View Link: A link only available on public folders for viewing their static web assets.


Section |
Field |
Description |
---|---|---|
Event | Lists events for the selected connector. | |
Configuration | Connection |
The Google Drive connection to use for the start event. |
Drive | The Google DriveDrive to use for the start event. | |
Conditions |
Add condition |
Displays fields for defining a new condition. |
|
When |
The start variable that the operator compares with the value. |
|
Operator |
How the When variable and Value are compared. Select from the drop-down. The operators available in the drop-down depend on the When variable type. For example, you want your workflow to start when the file moved to trash contains the word User. In the condition: When Name contains User, the operator is contains. |
|
Value |
The text or variable that the operator compares with the When variable. Type to enter text. The variable type must match the When variable type. For example, in the condition: When Name contains User, the operator is contains, the value is User. |
|
Condition Summary | A summary explaining how or why the condition was added. |
|
Add |
Saves the condition to the start event. |
|
Cancel |
Discards the condition you are editing. |
|
all/any |
If you select:
|
|
|
Displays condition fields for editing. |
|
Deletes the indicated condition. |