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

    Variable sc_cat_item_producerConst

    sc_cat_item_producer: {
        extends: "sys_metadata";
        name: "sc_cat_item_producer";
        schema: {
            allow_edit: Typed<
                boolean,
                {
                    active: true;
                    default: false;
                    label: "Allow edit";
                    mandatory: false;
                    read_only: false;
                },
            >;
            can_cancel: Typed<
                boolean,
                {
                    active: true;
                    default: false;
                    label: "Can cancel";
                    mandatory: false;
                    read_only: false;
                },
            >;
            post_insert_script: Typed<
                string
                | number,
                {
                    active: true;
                    column_type: "script_plain";
                    default: "/**\r\n* This script is executed after the record is generated. \r\n* `current` Is the GlideRecord produced by Record Producer. Use `current.update()` to update the record\r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/";
                    label: "Post insert script";
                    mandatory: false;
                    read_only: false;
                },
            >;
            redirect_url: Typed<
                "generated_record"
                | "catalog_home",
                {
                    active: true;
                    choices: {
                        catalog_home: {
                            inactive: false;
                            label: "Catalog homepage";
                            language: "en";
                            sequence: 20;
                        };
                        generated_record: {
                            inactive: false;
                            label: "Generated task record";
                            language: "en";
                            sequence: 10;
                        };
                    };
                    default: "javascript: gs.getProperty('glide.sc.producer.redirect_url', 'generated_record')";
                    dropdown: "dropdown_without_none";
                    label: "Redirect to";
                    mandatory: false;
                    maxLength: 40;
                    read_only: false;
                },
            >;
            save_options: Typed<
                "destination",
                {
                    active: true;
                    choices: {
                        destination: {
                            inactive: false;
                            label: "Save in destination";
                            language: "en";
                            sequence: 10;
                        };
                    };
                    dropdown: "dropdown_with_none";
                    label: "Save options";
                    mandatory: false;
                    maxLength: 40;
                    read_only: false;
                },
            >;
            save_script: Typed<
                string
                | number,
                {
                    active: true;
                    column_type: "script_plain";
                    default: "/**\r\n* This script is executed at every step save in Catalog Builder. \r\n* This script is executed before `Script` is executed.\r\n* `current` Is the GlideRecord produced by Record Producer. \r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/";
                    label: "Save script";
                    mandatory: false;
                    read_only: false;
                },
            >;
            script: Typed<
                string
                | number,
                {
                    active: true;
                    column_type: "script_plain";
                    default: "/** This script is executed before the Record is generated\r\n* `current`- GlideRecord produced by Record Producer\r\n* Don't use `current.update()` or `current.insert()` as the record is generated by Record Producer\r\n* Don't use `current.setValue('sys_class_name', 'xxx')` as this will trigger reparent flow and can cause data loss\r\n* Avoid `current.setAbortAction()` and generate a separate record\r\n* Use `producer.var1` to access variables\r\n*/";
                    label: "Script";
                    mandatory: false;
                    read_only: false;
                },
            >;
            sys_id: Typed<
                string
                | number,
                {
                    active: true;
                    column_type: "GUID";
                    label: "Sys ID";
                    mandatory: false;
                    read_only: false;
                },
            >;
            table_name: Typed<
                keyof Tables,
                { active: true; label: "Table name"; mandatory: true; read_only: false },
            >;
            view: Typed<
                string,
                {
                    active: true;
                    dropdown: "none";
                    label: "View";
                    mandatory: false;
                    maxLength: 40;
                    read_only: false;
                },
            >;
        };
    } = ...

    Type Declaration

    • Readonlyextends: "sys_metadata"
    • Readonlyname: "sc_cat_item_producer"
    • Readonlyschema: {
          allow_edit: Typed<
              boolean,
              {
                  active: true;
                  default: false;
                  label: "Allow edit";
                  mandatory: false;
                  read_only: false;
              },
          >;
          can_cancel: Typed<
              boolean,
              {
                  active: true;
                  default: false;
                  label: "Can cancel";
                  mandatory: false;
                  read_only: false;
              },
          >;
          post_insert_script: Typed<
              string
              | number,
              {
                  active: true;
                  column_type: "script_plain";
                  default: "/**\r\n* This script is executed after the record is generated. \r\n* `current` Is the GlideRecord produced by Record Producer. Use `current.update()` to update the record\r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/";
                  label: "Post insert script";
                  mandatory: false;
                  read_only: false;
              },
          >;
          redirect_url: Typed<
              "generated_record"
              | "catalog_home",
              {
                  active: true;
                  choices: {
                      catalog_home: {
                          inactive: false;
                          label: "Catalog homepage";
                          language: "en";
                          sequence: 20;
                      };
                      generated_record: {
                          inactive: false;
                          label: "Generated task record";
                          language: "en";
                          sequence: 10;
                      };
                  };
                  default: "javascript: gs.getProperty('glide.sc.producer.redirect_url', 'generated_record')";
                  dropdown: "dropdown_without_none";
                  label: "Redirect to";
                  mandatory: false;
                  maxLength: 40;
                  read_only: false;
              },
          >;
          save_options: Typed<
              "destination",
              {
                  active: true;
                  choices: {
                      destination: {
                          inactive: false;
                          label: "Save in destination";
                          language: "en";
                          sequence: 10;
                      };
                  };
                  dropdown: "dropdown_with_none";
                  label: "Save options";
                  mandatory: false;
                  maxLength: 40;
                  read_only: false;
              },
          >;
          save_script: Typed<
              string
              | number,
              {
                  active: true;
                  column_type: "script_plain";
                  default: "/**\r\n* This script is executed at every step save in Catalog Builder. \r\n* This script is executed before `Script` is executed.\r\n* `current` Is the GlideRecord produced by Record Producer. \r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/";
                  label: "Save script";
                  mandatory: false;
                  read_only: false;
              },
          >;
          script: Typed<
              string
              | number,
              {
                  active: true;
                  column_type: "script_plain";
                  default: "/** This script is executed before the Record is generated\r\n* `current`- GlideRecord produced by Record Producer\r\n* Don't use `current.update()` or `current.insert()` as the record is generated by Record Producer\r\n* Don't use `current.setValue('sys_class_name', 'xxx')` as this will trigger reparent flow and can cause data loss\r\n* Avoid `current.setAbortAction()` and generate a separate record\r\n* Use `producer.var1` to access variables\r\n*/";
                  label: "Script";
                  mandatory: false;
                  read_only: false;
              },
          >;
          sys_id: Typed<
              string
              | number,
              {
                  active: true;
                  column_type: "GUID";
                  label: "Sys ID";
                  mandatory: false;
                  read_only: false;
              },
          >;
          table_name: Typed<
              keyof Tables,
              { active: true; label: "Table name"; mandatory: true; read_only: false },
          >;
          view: Typed<
              string,
              {
                  active: true;
                  dropdown: "none";
                  label: "View";
                  mandatory: false;
                  maxLength: 40;
                  read_only: false;
              },
          >;
      }