UiPath Activities

The UiPath Activities Guide

Download File

UiPath.Core.Activities.GetLastDownloadedFile

Description

Detects a file download from any application and waits for the download to complete before any further processing of the file in the automation. Add the activity that initiates the file download inside this activity.

To make sure the file download works as expected:

  • Do not download multiple files at once.
  • Add only the activity that starts the file download inside this activity. For example, if you need to use three Click activities to download a file from a web page, add the Use Application/Browser activity, and then, inside it:
    1. Add the first two Click activities.
    2. Add the Download File activity.
    3. Add the final Click activity that initiates the download inside Download File.
  • Make sure that you specify the Downloads folder correctly. If the file is downloaded in a subfolder of this folder, it will not be detected by the activity.
  • Increase the Timeout value for downloads that take longer to complete.

Properties

Common

  • DisplayName - The display name of the activity.

Input

  • Downloads folder - The folder where the file is downloaded.

Note:

The downloaded file must not replace an existing file with the same name in the Downloads folder.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Options

  • Timeout - Specify a time period for which to wait for the download to complete. The default value is 300 seconds. Increase the value if the file takes longer to download.

Output

  • Downloaded file - The properties of the downloaded file. This field supports FileInfo variables.

UiPath.Core.Activities.GetLastDownloadedFile

Description

Detects a file download from any application and waits for the download to complete before any further processing of the file in the automation. Add the activity that initiates the file download inside this activity.

To make sure the file download works as expected:

  • Do not download multiple files at once.
  • Add only the activity that starts the file download inside this activity. For example, if you need to use three Click activities to download a file from a web page, add the Use Application/Browser activity, and then, inside it:
    1. Add the first two Click activities.
    2. Add the Download File activity.
    3. Add the final Click activity that initiates the download inside Download File.
  • Make sure that you specify the Downloads folder correctly. If the file is downloaded in a subfolder of this folder, it will not be detected by the activity.
  • Increase the Timeout value for downloads that take longer to complete.

To learn how to use this activity, create a new project based on the Download File from Website project template.

Configuring the Activity

In the Body of the Activity

  • Add the activity or activities that download the file inside the Activity to initiate the download block.
  • Downloads folder - Click Browse browse files next to the field and then browse to and select the folder where the file is downloaded. By default, the Downloads folder for the current Windows user is selected. Alternatively, you can click Plus plus button on the right side of the field, and then use one of the available options in the menu to indicate the path of the folder:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a folder path, or indicate a field from a selected email in Outlook that contains a folder path.
    • Use Saved Value - Select a value in the form of a folder path that you previously saved for later use in the project.
    • Text - Enter a folder path in the Text Builder.
    • Ask when run - Prompt for a folder path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Downloaded file - Click Plus plus button on the right side of the field and then, from the menu, select Save for Later Use to save the properties of the downloaded file for later use in the automation. For example, if you download an Excel file that you want to use in your automation, save the file properties for later use, and then, when configuring the Use Excel File activity, select the saved value and indicate the Full Path file property as the path of the file.

Note:

The downloaded file must not replace an existing file with the same name in the Downloads folder.

In the Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

Input

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

Options

  • Timeout - Specify a time period for which to wait for the download to complete. The default value is 300 seconds. Increase the value if the file takes longer to download.

Output

Updated 14 days ago


Download File


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.