File Created

Trigger a Flow when a new file is created in or added to Google Drive.

Setup

The first step to using this card is selecting the folder to watch for new files created. There are two ways to pick a folder:

Option 1: Select a folder name from the dropdown menu

    1. Create a folder in Google Drive and give it a name.
    2. Add a File Created event card for the Google Drive connector.
    3. Search for and select the folder name.
    4. Leave the Folder ID field blank.

Option 2: Input the Folder ID

    1. Create the folder in Google Drive.
    2. Navigate to the folder in Google Drive.
    3. Copy the folder ID found in the URL. The folder ID is the string after folder/ in the URL. For example, for the URL https://drive.google.com/drive/folders/1dyUEebJaFnWa3Z4n0BFMVAXQ7mfUH11g, the folder ID is 1dyUEebJaFnWa3Z4n0BFMVAXQ7mfUH11g.
    4. Add a File Created event card for the Google Drive connector.
    5. In the Folder ID field option, add the folder ID.

Output

Field Definition Type
File
File Name Name of the file String
File ID Unique ID of the file String
Folder Option to select folder to insert file in List of Text
Description Description of the file String
Starred Indicates whether the file is starred Boolean
Parent Item ID Parent folder for the file List of Text
Version Monotonically increasing version number for the file; this reflects every change made to the file on the server, even those not visible to the requesting user. String
Web View Link URL for the link that will pull up the folder inside Google Drive String
Created Time Date when the file was created (in ISO format) String
Modified Time Date when the file was last modified (in ISO format) String
Last Modified User Name of the user who last modified the file String
Permissions
Shared Indicates whether the file is shared and accessible Boolean
Owner Name of the person who owns the file String
Editors Names of people who have edit access to the file List of Text
Viewers Names of people who have viewer access to the file List of Text
Commenters Names of people who have comment access to the file List of Text
Allow File Discovery Indicates whether the file is discoverable through search inside Google Drive Boolean
Writers Can Share Indicates whether the people with write access can share the file Boolean
Viewers Can Copy Content Indicates whether views can copy this file Boolean

Related topics

Google Drive connector

About the elements of Okta Workflows

G Suite API documentation