Download File

This activity is used to download a specific file from a specific bucket.

Technical Reference

 

 

INPUT

BucketName: Specify the name of the bucket from which the file has to be downloaded.

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

KeyName: Specify the key name of the file which has to be downloaded.

 

 

 

 

 

 

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”

True: Continues to execute the workflow irrespective of any error thrown.

False: Stops the workflow if it throws any error

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

 

 

 OUTPUT

Output: This is not a mandatory field. However, to confirm if the file has been deleted, a variable must be created here, to view the result in an output box.

Result: Define a Boolean to validate if the activity has been completed successfully. This is not a mandatory field.

*Mandatory fields to execute the workflow 

Use Case

The following example illustrates on how we can use the download file activity to
download a specific file from a specific bucket using the key name of the file and the
bucket from which it has to be downloaded. Here we are going to download the file
with the key name “GATR” from the bucket named “testind1”.

Steps to execute the bot

1.      Drag and drop an Amazon S3 scope into the workflow

2.     Click on the Amazon scope activity and enter the Access Key ID,Region End Point
and Secret access Key which was given at the time of registration.

3.      Drag and drop a download file activity into the amazon scope.

4.      Click on the activity

5.      Enter the name of the bucket from which the file has to be downloaded. Here
it is “testind1”

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

7.      Enter the key name for the file which has to be downloaded. Here it is “GATR”

8.      Enter the declared variable in the output box of the output segment. Here it is Cb

9.      Drag and drop a writelog activity below the Download file activity.

10.   Enter the same variable declared above to the input string of the write log activity.

11.   Enter the log level as “info.”

12.   Execute the activity.

The bot executes the activity and downloads the file with key name “GATR” from the
bucket “testind1” in the specified path.