UiPath Activities

The UiPath Activities Guide

Download File

UiPath.Core.Activities.GetLastDownloadedFile

Note:

Starting with UiPath.System.Activities v20.6.1-preview, this activity is called Wait for Download.

Description

Detects a file download initiated from any application and waits for the download to complete before any processing of the file is performed in the automation. Add the activity that starts the download inside this activity, specify the folder where the indicated application saves the downloaded file, and save the properties of the downloaded file to a FileInfo variable. 

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, you can add an Open 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 indicated application saves the file in a subfolder of this folder, the download is not 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 application or web browser from which the file is downloaded saves the file. By default, the Downloads folder for the current Windows user is selected.

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

Note:

Starting with UiPath.System.Activities v20.6.1-preview, this activity is called Wait for Download.

Description

Detects a file download initiated from any application and waits for the download to complete before any processing of the file is performed in the automation. Add the activity that starts the download inside this activity, specify the folder where the application saves the downloaded file, and save the properties of the downloaded file for later use in the automation. 

To use this activity:

1. Add a Use Application/Browser activity and indicate the desktop application or web browser from which to download the file.
2. Add a Download File activity inside Use Application\Browser.
3. Inside Download File, add the activity that initiates the file download (for example, a Click activity that clicks a download button in the application interface).
4. In the Downloads Folder field of the Download File activity, specify the folder where the indicated application saves the file (by default, the Downloads folder for the current Windows user). The activity checks this folder and waits for the file download to complete. 

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 indicated application saves the file in a subfolder of this folder, the download is not 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 application or web browser from which the file is downloaded saves the file. 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 29 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.