Choose Files
Displays window with a Windows dialog box to choose a file/files from the file list. You can select one or more files.
In a SearchPattern field (this parameter is optional) you can use variable or sequence of characters (wildcards are allowed). You can use an asterisk (*) to replace any sequence of characters, so pattern “*.xlsx” finds all Excel documents in a given folder, “nu*” finds all files that name starts with letters “nu”. Without parameter in SearchPattern field the activity will display all documents in a given folder. The output variable (type: array of strings) will store a list of entire file names (starting from directory name, e.g. C:\Users\Admin\Desktop\Books\Romeo-and-Juliet.pdf).

Name | Type | Category | Description |
---|---|---|---|
Initial Path | String | Input | directory path to a folder |
Search Pattern | String | Input | string to match |
Alternative Scenario If Failed | Boolean | Misc | checkbox; default is "on" |
Display Name | Literal | Misc | changes display name of the activity |
Exclude from Transaction Check | Boolean | Misc | checkbox; default is "off" |
File List | String[] | Output | variable that will store the list of files |
Result | Boolean | Output | returns a Boolean value. True if no error in activity, otherwise will return False |
Result Code | Int32 | Output | Result Code will return 0 if there is no error in activity, otherwise in most cases will return 1. See the table of Extended Result Codes for more info |