READFILE

Reads data from a file into a local variable.

Supported Script Types

Generic Email Chat Phone Voicemail Work Item

Properties

FileName
This property is the name of the text file.
MaxLength

This property is the maximum number of characters to read from the file.

There is a 1,000 character maximum.

Variable
This property is the name of the script variable where the file data is stored.
ConverttoArray
This property is a drop down list to select either True or False. Correctly formatted data can be converted into an array.

Branches

Default
The Default branch condition will be used unless another branch condition is met.
OnFileNotFound
If the file name cannot be found, this branch condition will be triggered.

Tips and Tricks

  • The READFILE action can be used to retrieve simple data items from a file stored in the folder.
  • This action is typically used in conjunction with the WRITEFILE action.
  • READFILE and WRITEFILE offer basic data storage and retrieval capabilities.
  • For advanced data access functionality, refer to SQLSELECT, SQLEXEC, SQLTABLE, and SQLCURSOR.