List
![]() |
Retrieves a directory listing from the file server. |
Supported Script Types
Properties
Property | Details |
---|---|
FilePath | The file path and file pattern to list. It supports variables and wild cards. Asterisk (*) matches zero or more characters of any kind at that position. Question (?) matches exactly one character of any kind at that position. By default, *.* For example, MailLog\*.eml would return all .eml files in the MailLog folder. |
ResultVar | The variable name that is created and holds returned information. For example, if the contact enters their account number as 123456, then the variable holds 123456. |
CountVar | The name of the variable to contain the number of files listed. By default, COUNT. |
Branches
Branch | Details |
---|---|
Default |
Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the other branches are not defined. |
OnError |
Path taken when the action fails to execute properly. |
Tips & Tricks
- If you are looking for a file, such as a voice recording, use a Wait action to give the script a few seconds to find the file.
- The file gets copied to the file server from the media server.
- The larger the file, the longer you will need to wait for the file.