Google Drive Folder size function

The Google Drive Folder size function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to get folder size.

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


Description

The Google Drive Folder size function calculates the total size and file count of a folder, including all nested subfolders.


Setting it up

To use the Google Drive Folder size function, follow these instructions:

{{popups:rpas/add:action=google-workspace-drive-folder-size}}

Once on a process map:

  1. Navigate to the process where you would like to add the Google Drive Folder size 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 Folder size option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The folder ID to calculate size for
VariableNoText-State variable to store the result dictionary

Output variables

VariableTypeDescription
VariableDictionaryContains total_size (bytes) and file_count

Errors

ErrorDescription
Folder not foundThe specified folder ID does not exist
Not a folderThe specified ID is not a folder

Tips

  • Access individual values with {variable::total_size} and {variable::file_count}
  • Large folders may take longer to process

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.