Google Drive Upload file function

The Google Drive Upload file function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to upload a file.

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


Description

The Google Drive Upload file function uploads a local file to Google Drive, optionally with a custom name and into a specific folder.


Setting it up

To use the Google Drive Upload file function, follow these instructions:

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
Local file pathYesText-Local file path to upload
File name in DriveNoTextLocal filenameName for the file in Drive
Destination folder IDNoTextRootDestination folder ID
VariableNoText-State variable to store the new file ID

Output variables

VariableTypeDescription
VariableTextThe ID of the uploaded file

Errors

ErrorDescription
File not foundThe local file path does not exist
Permission deniedInsufficient permissions to upload
Storage fullGoogle Drive storage quota exceeded

Tips

  • Use variables like {folder::desktop::path}\filename.ext for the local path
  • The returned file ID can be used with other Google Drive functions
  • Google Drive allows multiple files with the same name in the same folder

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.