Skip to main content

Move File

AutomatR.Dropbox.Activities.MoveFile

The "Move File" activity in AutomatR is part of the Dropbox activities package, designed to move a file from a source path to a destination path within the user's Dropbox account. This activity streamlines file relocation tasks in Dropbox, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
Destination PathSpecifies the path of the destination folder in Dropbox to move the specific file. String variables containing the destination path.
Source PathSpecifies the path of the source folder in Dropbox to move the specific file. String variables containing the source path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Move File" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5.
OverwriteWhen enabled, allows overwriting the existing file with the specified file in the destination path. Boolean variables containing the overwrite setting.
Output
ResultOutputs a boolean variable that indicates whether or not the specified file was moved successfully. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to Use

  1. Drag and drop the "Move File" activity onto the workflow.
  2. Configure the properties by specifying the source path, destination path, and optional settings such as delay and overwrite.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to move the specified file within Dropbox.

Example:

Consider an example where the "Move File" activity is used to move a file named "document.txt" from one folder to another within Dropbox:

Move File:
Display Name: "Move Document File"
Source Path: "/Folder1/document.txt"
Destination Path: "/Folder2/"
Overwrite: true
Result: isMoveSuccessful

In this example, the activity moves the "document.txt" file from the "Folder1" directory to the "Folder2" directory within Dropbox. The result of the operation (success or failure) is stored in the Boolean variable "isMoveSuccessful" for further handling in the workflow.

Important Notes:

  • Ensure that the activity is placed within a "Dropbox Scope" activity to establish the necessary authentication scope.
  • Verify that the specified source file exists; otherwise, an exception will be thrown.
  • Optionally, configure the overwrite setting to replace an existing file with the specified file.