``` CREATE USER FIELD ```

Esta página de ayuda es para Studio. Esta información también está disponible para Desktop Studio.

Dependencias

Crear Campo de usuario es para usar solo con Proactive XS.

Tipos de secuencias de comandos compatibles

Ícono de auricular de teléfono violeta

Teléfono

Propiedades de entrada

Estas propiedades definen los datos que utiliza la acción al ejecutarse.

Propiedad

Descripción

Agregar leyenda

Introduzca una frase corta que identifique de forma única esta acción en el script. La leyenda aparece en el lienzo del script debajo del ícono de acción.

Nombre 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.
DataType El tipo de datos que se debe devolver, como una cadena, teléfono, booleanoClosed A data type that has two possible values: true and false., int, decimal, fecha, hora, etc.
Valor predeterminado The value you would provide to any record without a matching mapping. Cannot exceed 200 characters.
Asociaciones 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.

Condiciones de rama de resultado

Las condiciones de las ramas de resultado le permiten crear ramas en su script para manejar diferentes resultados cuando se ejecuta una acción.

Condición

Descripción

Por defecto 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.
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 Ruta tomada si los campos solicitados en las propiedades no pueden ser interpretados por 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 Ruta tomada si el campo está siendo utilizado actualmente por un filtro.

Ejemplo de Script

Este es un ejemplo para demostrar cómo se puede utilizar esta acción en los scripts. No pretende ser un script completo. Es posible que se requiera scripting adicional.

El script que se muestra a continuación establece todos los caminos para Crear Campo de usuario, que le permite crear una nueva definición de datos personalizada.

Example script using the CREATE USER FIELD action

Haga doble clic en la acción Snippet en el script de ejemplo para ver el código del snippet utilizado en el ejemplo. También puede ver el código del snippet en un archivo TXT que se incluye en el archivo ZIP de ejemplo que se encuentra a continuación

Descargue este script.