WRITEFILE

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

Icon of WriteFile: light blue document with a pencil

将自定义数据写入文件,然后将该文件写入 NiCE CXone 文件服务器,供以后使用。

依赖关系

当满足以下条件时,系统会承受过大负载:

  • 您的业务单位有超过 ~15 个并发呼叫。
  • 正在运行的脚本包含文件相关操作,例如 Writefile、Readfile 和 Fileexist。

此结果会导致限流。 您的业务单位将在脚本执行和其他功能(包括联系处理和状态更改)方面遇到延迟,直到积压的流程完成为止。

  • 此操作不应用于写入大量数据(大文件)或用于非常大容量的联络中心。 例如,如果您有大量联系人写入同一个文件,请勿使用此操作。

  • 如果需要编写大量数据,可以考虑使用数据库。 大文件可能需要很长时间,并且有可能超时。

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

通用

Email 聊天 电话 語音邮件 工作项目 短信

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

文件名称 The name of the new file.
输出文本

要写入文件的数据。

追加

下拉列表可以选择:

  • True:将新输出文本添加到文件末尾。
  • False:在写入之前擦除所有同名的先前文件。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

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.

Error

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.