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

    Variable sysrule_assignmentConst

    sysrule_assignment: {
        allowWebServiceAccess: true;
        attributes: { no_labels: true; update_synch: true };
        audit: true;
        extends: "sysrule";
        extensible: true;
        label: "Assignment Rule";
        name: "sysrule_assignment";
        schema: {
            active: Typed<boolean, { default: true; label: "Active" }>;
            condition: Typed<
                string,
                { dependent: "table"; label: "Conditions"; maxLength: 1000 },
            >;
            group: Typed<
                | string
                | Record<"sys_user_group">
                | ExplicitKey<"sys_user_group">
                | TableBrand<"sys_user_group">,
                {
                    attributes: { encode_utf8: false };
                    label: "Group";
                    referenceTable: "sys_user_group";
                },
            >;
            match_conditions: Typed<
                "ALL"
                | "ANY",
                {
                    choices: {
                        ALL: { label: "All"; sequence: 0 };
                        ANY: { label: "Any"; sequence: 0 };
                    };
                    default: "ALL";
                    dropdown: "dropdown_with_none";
                    label: "Match conditions";
                },
            >;
            script: Typed<
                string,
                {
                    default: "/**\n* Example:\n* The following script requires personalizing the instance to add the Malware category and the Security assignment group.\n* if (current.category == \"Hardware\")\n* current.assignment_group.setDisplayValue(\"Hardware\"); \n* else if (current.category == \"Software\")\n* current.assignment_group.setDisplayValue(\"Software\");\n* else if (current.category == \"Malware\")\n* current.assignment_group.setDisplayValue(\"Security\");\t\n*\n* Another Example:\n* Release Planning Example, which assigns the last person assigned to a release to the current release.\n* current.release.product.service.assigned_to;\n*/";
                    label: "Script";
                    maxLength: 8000;
                },
            >;
            sys_id: Typed<
                string,
                { label: [{ label: "Sys ID"; plural: "Sys IDs" }]; primary: true },
            >;
            table: Typed<
                keyof Tables,
                {
                    attributes: {
                        allow_public: true;
                        base_start: true;
                        base_table: "task";
                    };
                    choices: {
                        change_phase: { label: "Change Phase"; sequence: 0 };
                        change_request: { label: "Change"; sequence: 0 };
                        change_task: { label: "Change Task"; sequence: 0 };
                        incident: { label: "Incident"; sequence: 0 };
                        problem: { label: "Problem"; sequence: 0 };
                        release_phase: { label: "Release Phase"; sequence: 0 };
                        release_task: { label: "Release Task"; sequence: 0 };
                        sc_req_item: { label: "Request Item"; sequence: 0 };
                        sc_request: { label: "Request"; sequence: 0 };
                        ticket: { label: "Ticket"; sequence: 0 };
                    };
                    default: "incident";
                    label: "Table";
                },
            >;
            user: Typed<
                | string
                | Record<"sys_user">
                | ExplicitKey<"sys_user">
                | TableBrand<"sys_user">,
                {
                    attributes: { encode_utf8: false };
                    label: "User";
                    referenceTable: "sys_user";
                },
            >;
        };
        textIndex: true;
    } = ...

    Type Declaration

    • ReadonlyallowWebServiceAccess: true
    • Readonlyattributes: { no_labels: true; update_synch: true }
    • Readonlyaudit: true
    • Readonlyextends: "sysrule"
    • Readonlyextensible: true
    • Readonlylabel: "Assignment Rule"
    • Readonlyname: "sysrule_assignment"
    • Readonlyschema: {
          active: Typed<boolean, { default: true; label: "Active" }>;
          condition: Typed<
              string,
              { dependent: "table"; label: "Conditions"; maxLength: 1000 },
          >;
          group: Typed<
              | string
              | Record<"sys_user_group">
              | ExplicitKey<"sys_user_group">
              | TableBrand<"sys_user_group">,
              {
                  attributes: { encode_utf8: false };
                  label: "Group";
                  referenceTable: "sys_user_group";
              },
          >;
          match_conditions: Typed<
              "ALL"
              | "ANY",
              {
                  choices: {
                      ALL: { label: "All"; sequence: 0 };
                      ANY: { label: "Any"; sequence: 0 };
                  };
                  default: "ALL";
                  dropdown: "dropdown_with_none";
                  label: "Match conditions";
              },
          >;
          script: Typed<
              string,
              {
                  default: "/**\n* Example:\n* The following script requires personalizing the instance to add the Malware category and the Security assignment group.\n* if (current.category == \"Hardware\")\n* current.assignment_group.setDisplayValue(\"Hardware\"); \n* else if (current.category == \"Software\")\n* current.assignment_group.setDisplayValue(\"Software\");\n* else if (current.category == \"Malware\")\n* current.assignment_group.setDisplayValue(\"Security\");\t\n*\n* Another Example:\n* Release Planning Example, which assigns the last person assigned to a release to the current release.\n* current.release.product.service.assigned_to;\n*/";
                  label: "Script";
                  maxLength: 8000;
              },
          >;
          sys_id: Typed<
              string,
              { label: [{ label: "Sys ID"; plural: "Sys IDs" }]; primary: true },
          >;
          table: Typed<
              keyof Tables,
              {
                  attributes: {
                      allow_public: true;
                      base_start: true;
                      base_table: "task";
                  };
                  choices: {
                      change_phase: { label: "Change Phase"; sequence: 0 };
                      change_request: { label: "Change"; sequence: 0 };
                      change_task: { label: "Change Task"; sequence: 0 };
                      incident: { label: "Incident"; sequence: 0 };
                      problem: { label: "Problem"; sequence: 0 };
                      release_phase: { label: "Release Phase"; sequence: 0 };
                      release_task: { label: "Release Task"; sequence: 0 };
                      sc_req_item: { label: "Request Item"; sequence: 0 };
                      sc_request: { label: "Request"; sequence: 0 };
                      ticket: { label: "Ticket"; sequence: 0 };
                  };
                  default: "incident";
                  label: "Table";
              },
          >;
          user: Typed<
              | string
              | Record<"sys_user">
              | ExplicitKey<"sys_user">
              | TableBrand<"sys_user">,
              {
                  attributes: { encode_utf8: false };
                  label: "User";
                  referenceTable: "sys_user";
              },
          >;
      }
    • ReadonlytextIndex: true