Skip to main content

Copy file in Google Drive

Creates a copy of an existing file on Google Drive. Note: Does not support copying to Shared Drives

Common use cases

  • Data Manipulation

Application

  • Google Sheets

Inputs (what you have)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
File linkLink of the Google Drive file to be copiedNote: See requirements below on the required permissions before configuring the Wrk ActionLinkYeshttps://docs.google.com/spreadsheets/d/1Y/edit
New file nameName of the new file after it is copiedTextYesMy Presentation
Folder linkLink of the Google Drive folder where the file should be copied toURLYeshttps://drive.google.com/drive/folders/1-CTqA4s5HEEvM5LTOoEDy_eg
Permission typePermission type for users with access to the fileAccepted values:Editor: People can open, edit or delete contents in the fileCommenter: People can make comments and suggestions for the fileViewer: People can see the filePredefinedChoice ListYesEditor
Share withEmail of persons that should have access to the fileList of EmailsNowrkbot@wrk.com, johndoe@wrk.com
Access groupGeneral access permissions for the copied fileAccepted values:Restricted (permission type selected will apply only to persons the file is shared with)Anyone with the link (permission type will be applied to everyone)PredefinedChoice ListNoRestricted

Notes:

1. The value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

2. Editing permissions follow a degree of precedence: Editor, commenter and then viewer.

3. Once the access group is set as "Anyone with the link", the permission type will apply only to general access and any individual permissions added that has a lower precedence will be ignored until its permission is higher. E.g. if general access permission is set as "commenter" and a person has individual "viewer access", that person will be able to comment.

4. Inherited individual permissions will not be downgraded. E.g. a person is added as an Editor, the access group is set as restricted and the permission type as commenter or viewer, the person will remain an editor within the file.

Outputs (what you get)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
New file linkThe link of the new copied fileURLYeshttps://docs.google.com/spreadsheets/d/1

Outcomes

NAMEDESCRIPTION
SuccessThis status is selected when the spreadsheet is successfully copied from the specified Google Sheets spreadsheet, and the provided link can be used to directly access the file.
No ResultThis status is selected in the event of the following scenarios:- If the file to copy or destination folder cannot be found with the links provided
UnsuccessfulThis status is selected in the event of the following scenarios:- Application site is down- The file or folder do not have the required editing permissions- File or folder link is invalid

Requirements

  • The provided file must give editing permissions to googlewrkbots@wrk.com
  • Editing permissions to googlewrkbots@wrk.com should also be given to all source and destination folders
    • If the file is nested in multiple folders editing permission to googlewrkbots@wrk.com should be given to every folder