Note: Use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy, including the Limited Use requirements.

Google Drive - Get folder contents

Use the Google Drive - Get folder contents action A tool for building the processes, logic, and direction within workflows. to retrieve metadata for each item in a Google Drive folder.

For more information about the Google Drive connector, see Google Drive.

Configure the Google Drive - Get folder contents action

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add, rename, and copy actions.

  2. Select a Connection. If you do not have a connection, see Add a connection.
  3. Select the Drive you want to get the folder contents of.
  4. Select source type. The option presented is dependent on the source type selected:
    • The Folder path of the folder contents you want to retrieve. You can also browse the folder structure using the browse icon ().
    • The Folder ID of the folder contents you want to retrieve.
  5. Specify the Item limit of the items you want to be retrieved.
  6. Select or create a variable for the Result output.

Google Drive - Get folder contents action fields and settings

Section Field Description Variable types
(unlabeled) Connection Credentials and other settings required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

Google Drive connection to that contains the folder whose contents you want to retrieve.

To refresh the available connections, click Refresh.

(n/a)
  Drive The drive where the folder is located. Text
  Select a source type

The source type which will be used to retrieve the folder contents.

  • Folder path

  • Folder ID

Boolean
  Folder path The path of the folder whose contents you want to retrieve. You can also browse the Folder structure using the browse icon (). Text
  Folder ID

The ID of the folder whose contents you want to retrieve.

The folder ID can be retrieved by using the Google Drive - Get folder metadata action's ID output .

Text
  Item limit The amount of items which should be returned. Text
Output

Result

Stores the result of the action in an object with the following variables:

Path: (Text)

Object ID: (Text)

Items: (Collection)

  • ID: The ID of the folder.
  • Parent ID: The ID of the parent folder.
  • Drive ID: ID of the shared drive the folder resides in.
  • Name: The name of the folder.
  • Path: The path of the folder.
  • Created On: The date the folder was created.
  • Download Link: Short lived download URL for the folder.
  • Is Folder: Boolean variable for if it's a folder.
  • MIME Type: The MIME type of the folder.
  • Modified On: The last date the folder was modified.
  • Modified By (Email): The email of the user who last modified the folder.
  • Modified By (Display Name): The display name of the user who last modified the folder.
  • Size (bytes): The size of the folder.
  • Starred: Boolean value for if the folder is starred.
  • Trashed: Boolean value for if the folder is trashed.
  • View Link: A link only available on public folders for viewing their static web assets.

Object A variable that groups several related variables of any type into a hierarchical structure. Objects can contain other Objects.