FIELD

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

一个矩形,里面有一条短水平线。

根据称为分隔符的分隔字符从字符串中提取部分内容。 例如,电子邮件地址总是由两部分组成:以 @ 分隔的账户名称和主机名称。当分隔符设置为 @ 时,账户名称是地址中的第一个字段,主机名称是第二个字段。

支持的脚本类型

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

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 string you want to insert, search, or parse. This property supports variable substitution. If this value is a variable, rather than the literal string value, use curly brackets ( { } ).
分隔符 确定用于分隔各个字段的字符。 默认为竖线 (|) 字符。
字段索引 The number indicating which property to extract, starting with 1. This property is looking for a number, therefore, you do not need to use curly brackets {}.
存储字段于 Name of a variable to receive the extracted property.
存储计数于 This property is the number of items in an array. This number will always at least be 1.

结果分支条件

条件

说明

默认

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.

提示与技巧

使用 NiCE CXone,可以将带分隔符的数据集作为列表或数组进行处理。NiCE CXone 将竖线符号 (|) 作为列表和数组的标准分隔符。 在以下示例中,将从一个竖线分隔的单词列表中提取单词“three”,并将其保存为名为 F1 的变量:

  • 字符串:one|two|three|four|five
  • 分隔符:|
  • 字段索引:3
  • 将字段存储于:F1
  • 存入计数:FC