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

    Variable sys_script_clientConst

    sys_script_client: {
        allowWebServiceAccess: true;
        attributes: {
            "all_tables.text_index_translations": true;
            no_table_trace: true;
            update_synch: true;
        };
        audit: true;
        extends: "sys_metadata";
        extensible: true;
        label: "Client Script";
        name: "sys_script_client";
        schema: {
            active: Typed<boolean, { default: true; label: "Active" }>;
            applies_extended: Typed<
                boolean,
                {
                    default: false;
                    label: [
                        {
                            hint: "Applies to extended tables";
                            label: "Inherited";
                            plural: "Inherited";
                        },
                    ];
                },
            >;
            condition: Typed<string, { label: "Condition / onClick"; maxLength: 254 }>;
            description: Typed<string, { label: "Description"; maxLength: 4000 }>;
            field: Typed<string, { dependent: "table"; label: "Field name" }>;
            global: Typed<boolean, { default: true; label: "Global" }>;
            isolate_script: Typed<
                boolean,
                { default: false; label: "Isolate script" },
            >;
            messages: Typed<
                string,
                {
                    label: [
                        {
                            hint: "Text strings (one per line) available to the Client Script as localized messages using getMessage('[message]')";
                            label: "Messages";
                            plural: "Messages";
                        },
                    ];
                    maxLength: 4000;
                },
            >;
            name: Typed<string, { label: "Name" }>;
            order: Typed<
                number,
                {
                    label: [
                        {
                            hint: "Order in which to run the script";
                            label: "Order";
                            plural: "Orders";
                        },
                    ];
                },
            >;
            script: Typed<string | ScriptModule<Function>, {}>;
            sys_domain: Typed<
                string & {}
                | Record<"domain">
                | "global",
                {
                    default: "global";
                    label: [
                        {
                            hint: "Domain to which the script belongs";
                            label: "Domain";
                            plural: "Domains";
                        },
                    ];
                },
            >;
            sys_domain_path: Typed<
                string,
                {
                    attributes: { case_sensitive: true };
                    default: "/";
                    label: "Domain Path";
                },
            >;
            sys_overrides: Typed<
                | string
                | Record<"sys_script_client">
                | ExplicitKey<"sys_script_client">
                | TableBrand<"sys_script_client">,
                {
                    label: [
                        {
                            hint: "Script being overridden by the current record";
                            label: "Overrides";
                            plural: "Overrides";
                        },
                    ];
                    referenceTable: "sys_script_client";
                },
            >;
            table: Typed<keyof Tables, { label: "Table"; tableReference: true }>;
            type: Typed<
                "onCellEdit"
                | "onChange"
                | "onLoad"
                | "onSubmit",
                {
                    choices: {
                        onCellEdit: { label: "onCellEdit" };
                        onChange: { label: "onChange" };
                        onLoad: { label: "onLoad" };
                        onSubmit: { label: "onSubmit" };
                    };
                    dropdown: "dropdown_with_none";
                    label: "Type";
                },
            >;
            ui_type: Typed<
                0
                | 1
                | 10,
                {
                    choices: {
                        "0": { label: "Desktop"; sequence: 1 };
                        "1": { label: "Mobile / Service Portal"; sequence: 2 };
                        "10": { label: "All"; sequence: 3 };
                    };
                    default: "0";
                    dropdown: "dropdown_without_none";
                    label: "UI Type";
                },
            >;
            view: Typed<string, { label: "View" }>;
        };
        textIndex: true;
    } = ...

    Type Declaration

    • ReadonlyallowWebServiceAccess: true
    • Readonlyattributes: {
          "all_tables.text_index_translations": true;
          no_table_trace: true;
          update_synch: true;
      }
    • Readonlyaudit: true
    • Readonlyextends: "sys_metadata"
    • Readonlyextensible: true
    • Readonlylabel: "Client Script"
    • Readonlyname: "sys_script_client"
    • Readonlyschema: {
          active: Typed<boolean, { default: true; label: "Active" }>;
          applies_extended: Typed<
              boolean,
              {
                  default: false;
                  label: [
                      {
                          hint: "Applies to extended tables";
                          label: "Inherited";
                          plural: "Inherited";
                      },
                  ];
              },
          >;
          condition: Typed<string, { label: "Condition / onClick"; maxLength: 254 }>;
          description: Typed<string, { label: "Description"; maxLength: 4000 }>;
          field: Typed<string, { dependent: "table"; label: "Field name" }>;
          global: Typed<boolean, { default: true; label: "Global" }>;
          isolate_script: Typed<boolean, { default: false; label: "Isolate script" }>;
          messages: Typed<
              string,
              {
                  label: [
                      {
                          hint: "Text strings (one per line) available to the Client Script as localized messages using getMessage('[message]')";
                          label: "Messages";
                          plural: "Messages";
                      },
                  ];
                  maxLength: 4000;
              },
          >;
          name: Typed<string, { label: "Name" }>;
          order: Typed<
              number,
              {
                  label: [
                      {
                          hint: "Order in which to run the script";
                          label: "Order";
                          plural: "Orders";
                      },
                  ];
              },
          >;
          script: Typed<string | ScriptModule<Function>, {}>;
          sys_domain: Typed<
              string & {}
              | Record<"domain">
              | "global",
              {
                  default: "global";
                  label: [
                      {
                          hint: "Domain to which the script belongs";
                          label: "Domain";
                          plural: "Domains";
                      },
                  ];
              },
          >;
          sys_domain_path: Typed<
              string,
              {
                  attributes: { case_sensitive: true };
                  default: "/";
                  label: "Domain Path";
              },
          >;
          sys_overrides: Typed<
              | string
              | Record<"sys_script_client">
              | ExplicitKey<"sys_script_client">
              | TableBrand<"sys_script_client">,
              {
                  label: [
                      {
                          hint: "Script being overridden by the current record";
                          label: "Overrides";
                          plural: "Overrides";
                      },
                  ];
                  referenceTable: "sys_script_client";
              },
          >;
          table: Typed<keyof Tables, { label: "Table"; tableReference: true }>;
          type: Typed<
              "onCellEdit"
              | "onChange"
              | "onLoad"
              | "onSubmit",
              {
                  choices: {
                      onCellEdit: { label: "onCellEdit" };
                      onChange: { label: "onChange" };
                      onLoad: { label: "onLoad" };
                      onSubmit: { label: "onSubmit" };
                  };
                  dropdown: "dropdown_with_none";
                  label: "Type";
              },
          >;
          ui_type: Typed<
              0
              | 1
              | 10,
              {
                  choices: {
                      "0": { label: "Desktop"; sequence: 1 };
                      "1": { label: "Mobile / Service Portal"; sequence: 2 };
                      "10": { label: "All"; sequence: 3 };
                  };
                  default: "0";
                  dropdown: "dropdown_without_none";
                  label: "UI Type";
              },
          >;
          view: Typed<string, { label: "View" }>;
      }
    • ReadonlytextIndex: true