CREATE USER FIELD
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
通过 NiCE CXone 的 Proactive XS 创建自定义数据定义。 您在 NiCE CXone 中可以创建的任何数据定义类型,也可以通过创建用户字段创建。 |
依赖关系
Create User Field 仅适用于 Proactive XS。
支持的脚本类型
|
|
| 电话 |
输入属性
这些属性定义操作在执行时使用的数据。
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
| 名称 | Enter the name you want to give your source. Create Prospect v.1 used to carry this name; however, mapping requires that field be removed and stored here. |
| 数据类型 | 要返回的数据类型,例如字符串、电话、布尔 |
| 默认值 | The value you would provide to any record without a matching mapping. Cannot exceed 200 characters. |
| 关联 | Applies only to the phone data type. A correlation between a phone data type and another custom data definition. Make sure the custom data definition is the same data type as the associated field. |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
| 默认 | 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. |
| 错误 | 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. |
| FieldInUseByProcessingFilter | Path taken if there is an attempt made to change or remove a value currently in use by a filter. |
| InvalidDataType | Path taken if the data type provided does not match a supported data type. |
| NoNameProvided | Path taken if Name is blank. |
| DataTypeMismatch | Path taken if the subfield given has a different data type than the expected data type. For example, a Date data type rather than a Boolean may be given to compliance. |
| UserDefinedFieldNotFound | Path taken if the subfield is mapped to a non-existent field. |
| InvalidSubField | NiCE CXone 无法解释属性中请求的字段时所采用的路径。 |
| DefaultValueDoesntMatchDataType | Path taken if the specified default value does not match the specified data type. For example, if the default value is a string, but the data type is an integer. |
| DataTypeDoesntSupportDefaultValue | Path taken if the data type does not support the default value, for example, the phone data type. |
| FieldExceededLength | Path taken if Name is longer than 255 characters. |
| InUseAsSubtype | Path taken if the field is currently in use as a subtype of another field, specifically if the data type is being changed. |
| InUseByFilter | 如果该字段当前正被过滤器使用时所采用的路径。 |
脚本示例
这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。
下面所示脚本会设置 Create User Field 的所有路径,使您能够创建新的自定义数据定义。
在示例脚本中双击 Snippet 操作以查看示例中使用的代码片段代码。您也可以在下面示例 ZIP 文件中包含的 TXT 文件中查看该代码片段代码