Skip to main content
Copy file in Google Drive
Wrk Product avatar
Written by Wrk Product
Updated over a week ago

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)

NAME

DESCRIPTION

TYPE

REQUIRED

EXAMPLE

File link

Link of the Google Drive file to be copied

Note: See requirements below on the required permissions before configuring the Wrk Action

Link

Yes

https://docs.google.com/spreadsheets/d/1Y/edit

New file name

Name of the new file after it is copied

Text

Yes

My Presentation

Folder link

Link of the Google Drive folder where the file should be copied to

URL

Yes

https://drive.google.com/drive/folders/1-CTqA4s5HEEvM5LTOoEDy_eg

Permission type

Permission type for users with access to the file

Accepted values:

  • Editor: People can open, edit or delete contents in the file

  • Commenter: People can make comments and suggestions for the file

  • Viewer: People can see the file

Predefined

Choice List

Yes

Editor

Share with

Email of persons that should have access to the file

List of Emails

No

wrkbot@wrk.com, johndoe@wrk.com

Access group

General access permissions for the copied file

Accepted 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)

Predefined

Choice List

No

Restricted

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)

NAME

DESCRIPTION

TYPE

REQUIRED

EXAMPLE

New file link

The link of the new copied file

URL

Yes

https://docs.google.com/spreadsheets/d/1

Outcomes

NAME

DESCRIPTION

Success

This 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 Result

This 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

Unsuccessful

This 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

Did this answer your question?