@servicenow/sdk - v4.7.0
    Preparing search index...
    type TriggerConditions<T extends TableName> = {
        advancedCondition?: string;
        affectedFieldOnEvent?: "parm1" | "parm2";
        condition?: string;
        eventName?: string;
        generationType?: "engine" | "event" | "triggered";
        item?: string;
        itemTable?: T;
        onRecordInsert?: boolean;
        onRecordUpdate?: boolean;
        order?: number;
        weight?: number;
    }

    Type Parameters

    Index

    Properties

    advancedCondition?: string

    Advanced condition script for complex notification logic

    affectedFieldOnEvent?: "parm1" | "parm2"

    Which event parameter contains the affected field (parm1 or parm2)

    condition?: string

    Script-based condition that must be met for the notification to send

    eventName?: string

    Name of the event that triggers this notification (for event-based notifications)

    generationType?: "engine" | "event" | "triggered"

    Type of notification generation: engine (record insert/update), event (system event), or triggered (manual)

    'engine'
    
    item?: string

    The item to use for the notification context

    'event.parm1'
    
    itemTable?: T

    The table that the notification item refers to

    onRecordInsert?: boolean

    Whether to send notification when a record is inserted

    onRecordUpdate?: boolean

    Whether to send notification when a record is updated

    order?: number

    The execution order of the notification

    weight?: number

    The execution order of the notification (lower numbers execute first)

    0