@servicenow/sdk - v4.7.0
    Preparing search index...

    Interface CatalogClientScriptProps<E>

    interface CatalogClientScriptProps<E extends CatalogClientScriptEvents> {
        $id: string | number | ExplicitKey<string>;
        $override?: Record<string, string | number | boolean>;
        active?: boolean;
        appliesOnCatalogItemView?: boolean;
        appliesOnCatalogTasks?: boolean;
        appliesOnRequestedItems?: boolean;
        appliesOnTargetRecord?: boolean;
        appliesTo?: "item" | "set";
        catalogItem?: string | CatalogItem | CatalogItemRecordProducer;
        global?: boolean;
        isolateScript?: boolean;
        name: string;
        protectionPolicy?: "read" | "protected";
        publishedRef?: string;
        script: string;
        type?: E;
        uiType?: CatalogClientScriptUIType;
        variableName?: string | AnyVariable;
        variableSet?: string | VariableSet;
        vaSupported?: boolean;
    }

    Type Parameters

    Index

    Properties

    $id: string | number | ExplicitKey<string>
    $override?: Record<string, string | number | boolean>

    Set properties not directly supported by this API.

    active?: boolean

    Whether the script is active.

    appliesOnCatalogItemView?: boolean

    Whether the script is applies on catalog item view.

    appliesOnCatalogTasks?: boolean

    Whether the script is applies on catalog tasks.

    appliesOnRequestedItems?: boolean

    Whether the script is applies on requested items.

    appliesOnTargetRecord?: boolean

    Whether the script is applies on target record.

    appliesTo?: "item" | "set"

    The applies to the script.

    catalogItem?: string | CatalogItem | CatalogItemRecordProducer

    The catalog item the script applies to. Mutually exclusive with variableSet.

    global?: boolean

    Whether the script is global.

    isolateScript?: boolean

    Whether the script is isolated.

    name: string

    The name of the client script.

    protectionPolicy?: "read" | "protected"

    Controls edit/view access for other developers after the application is installed.

    • read: Others can see the script logic but not change it.
    • protected: Others cannot change this record.
    • Omit to allow other developers to customize this record.
    publishedRef?: string

    The published ref of the client script.

    script: string

    The script to run.

    type?: E

    The type of the client script.

    The ui type of the client script.

    variableName?: string | AnyVariable

    The catalog variable that triggers the script. This property applies only when the type property is set to onChange.

    variableSet?: string | VariableSet

    The variable set the script applies to. Mutually exclusive with catalogItem.

    vaSupported?: boolean

    Whether the script is VA supported.