Google Drive File info function

The Google Drive File info function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to get file info.

For a full list of available functions, please read Google Drive functions.


Description

The Google Drive File info function retrieves metadata for a file including name, size, MIME type, created/modified dates, parent folders, sharing status, and starred state.


Setting it up

To use the Google Drive File info function, follow these instructions:

{{popups:rpas/add:action=google-workspace-drive-file-info}}

Once on a process map:

  1. Navigate to the process where you would like to add the Google Drive File info function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Google Drive File info option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The file ID to get metadata for
VariableNoText-State variable to store the metadata dictionary

Output variables

VariableTypeDescription
VariableDictionaryFile metadata including name, size, mimeType, createdTime, modifiedTime, parents, shared, starred

Errors

ErrorDescription
File not foundThe specified file ID does not exist

Tips

  • Access individual metadata fields using dictionary notation, e.g. {variable::name}
  • The size field is in bytes for non-Workspace files; Workspace files have no size

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.