Writefile

This help page is for Desktop Studio. This information is also available for Studio.

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

依赖关系

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

  • 您的业务单位有超过 ~15 个并发呼叫。
  • 当前运行的脚本包含文件相关操作,例如 WritefileReadfileFileexist

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

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

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

支持的脚本类型

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信 数字

输入属性

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

属性

说明

FileName 新文件的名称。
OutputText

要写入文件的数据。

追加

下拉列表可以选择:

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

结果分支条件

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

条件

说明

Default

除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。 如果未定义操作的其他分支,也会执行此操作。

OnError

操作无法正确执行时所采用的路径。 例如,出现连接不良、语法错误等意外问题时。 _ERR 变量以单个下划线字符填充,应包含对问题的简要解释。