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

    Interface Interceptor

    Presents a question/decision panel before a user creates a new record on an intercepted table, guiding them through a branching flow of answers to route the user to the right destination form, URL, or follow-up question. For 'multipleChoice' answers, create sys_wizard_choice records separately using the Record API. This is the platform's "What type of X would you like to create?" chooser mechanism, matched at runtime via GlideappWizardIntercept against intercepts.

    Also accepts protectionPolicy (via Now.Internal.WithIdAndMetadata) to control edit/view access for other developers after the application is installed.

    interface Interceptor {
        $override?: Record<string, string | number | boolean>;
        answers?: InterceptorAnswer[];
        backPanel?: string | Interceptor | Record<"sys_wizard">;
        intercepts?: string;
        name: string;
        nextPanel?: string | Interceptor | Record<"sys_wizard">;
        protectionPolicy?: "read" | "protected";
        question?: string;
    }
    Index

    Properties

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

    Set properties not directly supported by this API.

    answers?: InterceptorAnswer[]

    Answer options presented to the user for this question.

    backPanel?: string | Interceptor | Record<"sys_wizard">

    Previous question/panel in the flow. Reference to sys_wizard; accepts a raw sys_id string, a Record<'sys_wizard'>, or an Interceptor(...) expression.

    intercepts?: string

    *.do page path this Interceptor triggers on instead of the table's default new-record form, e.g. 'incident.do'. The platform stores this as a plain string; in practice, every out-of-box interceptor targets a single table.

    name: string

    Internal label for this question panel. Not shown to the end user. Identifies the record — two Interceptors with the same name coalesce into a single record. Renaming an existing Interceptor creates a new record on the instance and orphans the old one.

    nextPanel?: string | Interceptor | Record<"sys_wizard">

    Default next question/panel in the flow, used when the selected answer doesn't specify its own nextQuestion. Reference to sys_wizard; accepts a raw sys_id string, a Record<'sys_wizard'>, or an Interceptor(...) expression.

    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.
    question?: string

    Question text presented to the user.