Google Drive Copy file function

The Google Drive Copy file function in RPA.

Help CentreFunctions & Formulas

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

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


Description

The Google Drive Copy file function copies a file in Google Drive, optionally with a new name and/or into a different folder. The original file remains unchanged.


Setting it up

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

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The Google Drive file ID to copy
New nameNoTextOriginal nameNew name for the copied file
Destination folder IDNoTextSame folderDestination folder ID
VariableNoText-State variable to store the new file ID

Output variables

VariableTypeDescription
VariableTextThe ID of the newly created copy

Errors

ErrorDescription
File not foundThe specified file ID does not exist
Permission deniedInsufficient permissions to copy the file
Folder not foundThe destination folder ID does not exist

Tips

  • Use variables like {file_id} for dynamic file IDs
  • If no new name is specified, the copy retains the original name
  • The copied file inherits the permissions of the destination 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.