Google Drive Restore from trash function

The Google Drive Restore from trash function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to restore a file from trash.

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


Description

The Google Drive Restore from trash function restores a previously trashed file, returning it to its original location.


Setting it up

To use the Google Drive Restore from trash function, follow these instructions:

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The trashed file ID to restore

Output variables

This action does not produce output variables.


Errors

ErrorDescription
File not foundThe specified file ID does not exist or is not in trash

Tips

  • The file is restored to its original location
  • Only works for files that have been trashed, not permanently deleted

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.