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 |
|
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 |
|
Permission type | Permission type for users with access to the file Accepted values:
| Predefined Choice List | Yes | Editor |
Share with | Email of persons that should have access to the file | List of Emails | No |
|
Access group | General access permissions for the copied file Accepted values:
| 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 |
|
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 foldersIf the file is nested in multiple folders editing permission to
googlewrkbots@wrk.com
should be given to every folder