CREATE USER FIELD

Deze helppagina is voor Studio. Deze informatie is ook beschikbaar voor Desktop Studio.

Afhankelijkheden

Create User Field is alleen bedoeld voor gebruik met Proactive XS.

Ondersteunde scripttypen

Icon of purple telephone handset

Telefoon

Invoer-Eigenschappen

Deze eigenschappen definiëren gegevens die de actie gebruikt bij het uitvoeren.

Variabele

Beschrijving

Bijschrift toevoegen

Voer een korte woordgroep in die deze actie in het script uniek identificeert. Het bijschrift verschijnt op het scriptcanvas onder het actiepictogram.

Naam 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.
Gegevenstype Het type gegevens dat moet worden geretourneerd, zoals een string, telefoon, booleanClosed Een gegevenstype dat twee mogelijke waarden heeft: Waar en Onwaar., int, decimal, datum, tijd, enz.
Standaardwaarde The value you would provide to any record without a matching mapping. Cannot exceed 200 characters.
Koppelingen 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.

Resultaatvertakkingsvoorwaarden

Met Resultaatvertakkingsvoorwaarden kunt u vertakkingen maken in uw script om verschillende uitkomsten te verwerken wanneer een actie wordt uitgevoerd.

\n

Voorwaarde

\n

Beschrijving

Standaard 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.
Fout 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 Het pad dat wordt gevolgd als de gevraagde velden in de eigenschappen niet kunnen worden geïnterpreteerd door 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 Het pad dat wordt gevolgd als het veld momenteel in gebruik is door een filter.

Voorbeeld van een script

Dit is een voorbeeld dat toont hoe deze actie kan worden gebruikt in scripts. Het is niet bedoeld als een compleet script. Extra scripting kan vereist zijn.

Het hieronder weergegeven script stelt alle paden in voor Create User Field, waarmee u een nieuwe aangepaste datadefinitie kunt maken.

Example script using the CREATE USER FIELD action

Dubbelklik op de Snippet-actie in het voorbeeldscript om de snippetcode te bekijken die in het voorbeeld wordt gebruikt. U kunt de snippetcode ook bekijken in een TXT-bestand dat is opgenomen in het voorbeeld-ZIP-bestand hieronder.

Dit script downloaden.