Download File

This activity is used to download a specific file from the specified directory of a server to a local folder.

Technical Reference:

 

 

 

 

 

INPUT

FilePath: Specify the path of the file in which the downloaded has to be saved.

FtpFileName: Specify the name of the directory and the file which has to be downloaded.

SaveFileName: Specify in which name the file downloaded has to be saved.

 

 

 

 

 

 

 

 

 

MISC

Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes.

SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False”. By default, it is set to “False.”

True: Continues the workflow to the next step

False: Stops the workflow and throws an error.

Version: It specifies the version of the FTP automation feature in use

 

 OUTPUT

Result: Declare a variable here to see the result if the file has been downloaded or not. This is not a mandatory field however declare a variable to get the result.

* Mandatory fields to execute the workflow.

 

The following activity illustrates on how the download file activity is used to download a specific file from a directory in the server.

Example:

1.      Drag and drop a download activity from the FTP automation feature.

2.      Double click on the activity.

3.      Enter the path in which the downloaded file has to be saved

4.      Enter the FTP File name along with the directory name.

5.      Enter in which name the file downloaded has to be saved.

6.      Enter a variable as “DL” in the result box from the properties panel.

7.      Drag and drop a write log activity below the download activity.

8.      Enter the variable as “ DL.ToString” in the input string of the write log activity.

9.      Execute the activity

 

The bot executes the activity and downloads the file in the given path.