Files Handling

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).

v2_fh_choose
Acquired TextStringOutputtext input by user
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Display NameLiteralInputchanges display name of the activity
Exclude from Transaction CheckBooleanInputcheckbox; default is "off"
Initial PathStringInputdirectory path to a folder
Search PatternStringInputstring to match
File ListString[]Outputvariable that will store the list of files
ResultBooleanOutputreturns a Boolean value. True if no error in activity, otherwise will return False
Result CodeInt32OutputResult 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