Readfile

Reads data from a file into a local variable.

An excessive load is placed on your system when these conditions are met: 

  • Your tenant has more than ~15 concurrent calls.
  • The scripts that are running contain file-related actions, such as Writefile, Readfile, and Fileexist.

This results in throttling. Your tenant will experience latency with script execution and other functions, including contact handling and state changes, until the backlog of processes completes.

Supported Script Types

Properties

Property Details
FileName Name of the file.
MaxLength Limits the size of the web page. Limit4K, Limit8K, Limit16K, Limit32K are available. Contains a 1000 character maximum.
Variable The name of the variable that you want to hold the variable value.
ConverttoArray A drop down list to select either True or False. Correctly formatted data can be converted into an array.

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.
FileNotFound Path taken if the filename cannot be found.

Tips & 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.