Read File Info

Read metadata information about a file.

Input

Field Definition Type Required

File ID

Unique ID of the file. The ID of a file can be found by navigating to the Google Drive web. Right-click on the file and select get sharable link. The File ID is the last part of that link, after id=. Example: https://drive.google.com/open?id=1avkd2a. Make sure to select the entire ID (about 20 characters long).

Alternatively, use the Search Files action card to find the file by name. The Search Files card has a File ID output field that can be dragged into this input field.

Text

TRUE

Output

Field Definition Type

File Name

Name of the file.

Text

Description

Description of the file.

Text

Starred

  • True: A file has a "Starred" label applied to it
  • False: A file does not have a "Starred" label applied to it

True/False

Parent Item ID

Provides a list output for all of the parent folders inside of which the file you read information exists.

List of Text

Version

A monotonically increasing version number for the file.

Text

Web View Link

URL directly to the link that will pull up the file inside Google Drive.

Text

Thumbnail Link

A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.

Text

Created Time

Date when the file was created.

Text

Modified Time

Date when the file was last modified.

Text

Capabilities

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

List of Text

Last Modified User

Name of the user who last modified the file.

Text

Permissions

Shared

Indicates whether the file is shared and accessible or not.

True/False

Owners

Name of the person who owns the file.

List of Text

Editors

List of names of people who have edit access to the file.

List of Text

Viewers

List of names of people who have viewer access to the file.

List of Text

Commenters

List of names of people who have comment access to the file.

List of Text

Allow File Discovery

Indicates whether the file is discoverable or not via search inside Google Drive.

True/False

Writers Can Share

Indicates whether the people with write access can share the file.

True/False

Viewers Can Download

Indicates whether viewers can download the file.

True/False

Related topics

Google Drive connector

Workflow elements

Google Workspace API documentation