@servicenow/sdk - v4.4.1
    Preparing search index...
    interface sys_script_email {
        name: Typed<
            string,
            {
                label: [
                    {
                        hint: "Name of script";
                        label: "Name";
                        language: "en";
                        plural: "Names";
                    },
                ];
                maxLength: 100;
                unique: true;
            },
        >;
        new_lines_to_html: Typed<
            boolean,
            {
                default: false;
                label: [
                    {
                        hint: "For backwards-compatibility with older scripts, automatically convert newlines such as template.print(\"\n\") into HTML by wrapping lines with \"<div>...</div>\"";
                        label: "Newlines to HTML";
                        language: "en";
                        plural: "Newlines to HTMLs";
                    },
                ];
            },
        >;
        script: Typed<
            string
            | number,
            {
                columnType: "script_plain";
                default: "(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,\n /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,\n /* Optional GlideRecord */ event) {\n\n // Add your code here\n\n})(current, template, email, email_action, event);";
                label: [
                    {
                        hint: "Script contents";
                        label: "Script";
                        language: "en";
                        plural: "Scripts";
                    },
                ];
                maxLength: 4000;
            },
        >;
        sys_id: Typed<
            string
            | number,
            { columnType: "GUID"; label: "Sys ID"; maxLength: 32; primary: true },
        >;
    }

    Hierarchy (View Summary)

    Index

    Properties

    name: Typed<
        string,
        {
            label: [
                {
                    hint: "Name of script";
                    label: "Name";
                    language: "en";
                    plural: "Names";
                },
            ];
            maxLength: 100;
            unique: true;
        },
    >
    new_lines_to_html: Typed<
        boolean,
        {
            default: false;
            label: [
                {
                    hint: "For backwards-compatibility with older scripts, automatically convert newlines such as template.print(\"\n\") into HTML by wrapping lines with \"<div>...</div>\"";
                    label: "Newlines to HTML";
                    language: "en";
                    plural: "Newlines to HTMLs";
                },
            ];
        },
    >
    script: Typed<
        string
        | number,
        {
            columnType: "script_plain";
            default: "(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,\n /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,\n /* Optional GlideRecord */ event) {\n\n // Add your code here\n\n})(current, template, email, email_action, event);";
            label: [
                {
                    hint: "Script contents";
                    label: "Script";
                    language: "en";
                    plural: "Scripts";
                },
            ];
            maxLength: 4000;
        },
    >
    sys_id: Typed<
        string
        | number,
        { columnType: "GUID"; label: "Sys ID"; maxLength: 32; primary: true },
    >