Activities
latest
false
Banner background image
Workflow Activities
Last updated Apr 22, 2024

File Exists

UiPath.Core.Activities.FileExistsX

Checks if the specified file path exists.

To learn how to use this activity, see Tutorial: Working with Files and Folders.

Configuring the Activity

In the Body of the Activity
  • File path - Click Browse next to the field and then browse to and select the file to check. Alternatively, you can click Plus on the right side of the field and then, from the menu, choose one of the available options to indicate the file path to check:

    • If the activity is inside a For Each File in Folder activity, you can select CurrentFile > Full Name (includes full path) to indicate the path of the file you are currently iterating through.
    • 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 file path, or indicate a field from a selected email in Outlook that contains a file path.
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • Text - Enter a file path in the Text Builder. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Project Notebook.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Output result - Click Plus on the right side of the field and then, from the menu, choose one of the available options to indicate where to save the result (TRUE if the file exists or FALSE if the file does not exist):

    • Select an Excel file or the Excel Worksheet and then select a cell where to save the result.
    • Save for Later Use - Use the output result later in your project as input for another activity.
    • Open in Advanced Editor - Enter a VB expression.
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.

Output

  • Configuring the Activity

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.