CREATE USER FIELD

このヘルプページはStudio向けです。 この情報はDesktop Studioでも利用可能です。

依存関係

ユーザーフィールドの作成はProactive XSでのみ使用できます。

サポートされているスクリプトタイプ

Icon of purple telephone handset

電話

入力プロパティ

これらのプロパティは、アクションが実行時に使用するデータを定義します。

プロパティ

説明

キャプションを追加

スクリプト内でこのアクションを一意に識別できる、短いフレーズを入力します。 アクションアイコンにカーソルを合わせるとキャプションが表示されます。

名前 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.
データタイプ 返されるデータのタイプです。文字列、電話、ブーリアンClosed trueとfalseの2つの値を持つデータタイプです。、int、小数、日付、時刻などです。
Default Value 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アクションをダブルクリックすると、例で使用されているスニペットコードを表示できます。スニペットコードは、以下の例の郵便番号ファイルに含まれているTXTファイルでも確認できます。

このスクリプトをダウンロードしてください。