List
|
Retrieves a directory listing from the file server. |
Dependencies
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. To avoid problems, use a
Supported Script Types
|
|
|
|
|
|
|
|
Generic |
Chat | Phone | Voicemail | Work Item | SMS | Digital |
Input Properties
These properties define data that the action uses when executing.
Property |
Description |
---|---|
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. |
Result Branch Conditions
Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.
Condition |
Description |
---|---|
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 action's other branches are not defined. |
|
Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem. |