Activities
latest
false
Banner background image
Productivity Activities
Last updated Apr 26, 2024

Copy File

UiPath.GSuite.Activities.CopyFileConnections

Description

Copies a file on Google Drive.

Scopes

This activity requires the following scopes:

  • https://www.googleapis.com/auth/drive.appdata
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.photos.readonly

Project compatibility

Windows | Cross-platform

Configuration

  • Google Drive connection - The connection for the Google Workspace account to use in the activity.
  • File to copy - The file to be copied. Browse the Google Drive folders and select a file to be copied. Use the See more button menu to switch to Use variable (IResource type) or Url or ID input (String) modes.
    • If you select Use variable, you can use the output variable from other activities.
    • Select the Reload File Picker option if you've modified your folders and need to retrieve the latest data.

  • Destination folder - The folder where to copy the file. This field accepts IResource input. Use the See more button menu to switch to Use variable (IResource type) or Url or ID input (String) modes.
    • Select the Reload File Picker option if you've modified your folders and need to retrieve the latest data.

  • New name - The new name of the copied file. If left empty, the copy of the file retains the original name. This property supports String variables and string formatted values.
  • If file already exists - The expected behavior when a file with the same name already exists in the destination folder. Choose one of the available options from the dropdown menu:
    • Add as a separate file - Adds the file without renaming it even if an item with the same name exists. Default option.
    • Don't replace - Fails if an existing item is found.
    • Auto rename - Auto renames the new item by appending a number.
    • Replace - Replaces the existing item. Fails if multiple items with the same name exists.
Additional options

Output

  • File - The copied file. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities, such as Download File.

Example



See also:
  • Description
  • Project compatibility
  • Configuration
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.