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

    Variable sys_script_emailConst

    sys_script_email: {
        allowWebServiceAccess: true;
        extends: "sys_metadata";
        label: "Email Script";
        name: "sys_script_email";
        schema: {
            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 },
            >;
        };
        textIndex: true;
    } = ...

    Type Declaration

    • ReadonlyallowWebServiceAccess: true
    • Readonlyextends: "sys_metadata"
    • Readonlylabel: "Email Script"
    • Readonlyname: "sys_script_email"
    • Readonlyschema: {
          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 },
          >;
      }
    • ReadonlytextIndex: true