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

    Variable incidentConst

    incident: {
        actions: ["read", "update", "create"];
        allowClientScripts: true;
        allowNewFields: true;
        allowUiActions: true;
        allowWebServiceAccess: true;
        attributes: {
            "all_tables.query_hints": true;
            email_client: true;
            hasWorkflow: true;
            live_feed: true;
        };
        audit: true;
        autoNumber: { number: 10000; prefix: "INC" };
        extends: "task";
        label: "Incident";
        licensingConfig: {
            licenseModel: "fulfiller";
            ownerCondition: "caller_id=javascript:gs.getUserID()^NQcaller_idISEMPTY^opened_by=javascript:gs.getUserID()^EQ";
        };
        liveFeed: true;
        name: "incident";
        schema: {
            business_impact: Typed<
                string,
                { label: "Business impact"; maxLength: 4000 },
            >;
            business_stc: Typed<
                number,
                {
                    attributes: { ignore_filter_on_new: true };
                    label: [
                        {
                            hint: "Business time elapsed (stored in seconds) before Incident was resolved";
                            label: "Business resolve time";
                            language: "en";
                            plural: "Business resolve times";
                        },
                    ];
                    readOnly: true;
                    readOnlyOption: "instance_configured";
                },
            >;
            calendar_stc: Typed<
                number,
                {
                    attributes: { ignore_filter_on_new: true };
                    label: [
                        {
                            hint: "Time elapsed (stored in seconds) before Incident was Resolved";
                            label: "Resolve time";
                            language: "en";
                            plural: "Resolve times";
                        },
                    ];
                    readOnly: true;
                    readOnlyOption: "instance_configured";
                },
            >;
            caller_id: Typed<
                | string
                | Record<"sys_user">
                | ExplicitKey<"sys_user">
                | TableBrand<"sys_user">,
                {
                    attributes: {
                        encode_utf8: false;
                        ref_contributions: "user_show_incidents";
                    };
                    default: "javascript:incidentGetCaller();";
                    dependent: "company";
                    label: [
                        {
                            hint: "Person who reported or is affected by this incident";
                            label: "Caller";
                            language: "en";
                            plural: "Callers";
                        },
                    ];
                    referenceTable: "sys_user";
                },
            >;
            category: Typed<
                string,
                { default: "inquiry"; dropdown: "dropdown_with_none"; label: "Category" },
            >;
            cause: Typed<string, { label: "Probable cause"; maxLength: 4000 }>;
            caused_by: Typed<
                | string
                | Record<"change_request">
                | ExplicitKey<"change_request">
                | TableBrand<"change_request">,
                {
                    attributes: { encode_utf8: false };
                    label: [
                        {
                            hint: "Change request that caused the incident";
                            label: "Caused by Change";
                            language: "en";
                            plural: "Caused by Changes";
                        },
                    ];
                    referenceTable: "change_request";
                },
            >;
            child_incidents: Typed<
                number,
                {
                    default: "0";
                    label: [
                        {
                            hint: "Number of child Incidents related to this Problem";
                            label: "Child Incidents";
                            language: "en";
                            plural: "Child Incidents";
                        },
                    ];
                },
            >;
            close_code: Typed<
                string,
                {
                    dropdown: "dropdown_with_none";
                    label: [
                        {
                            hint: "For use in reporting";
                            label: "Resolution code";
                            language: "en";
                            plural: "Resolution codes";
                        },
                    ];
                },
            >;
            hold_reason: Typed<
                number,
                { dropdown: "dropdown_with_none"; label: "On hold reason" },
            >;
            incident_state: Typed<
                number,
                {
                    default: "1";
                    dropdown: "dropdown_without_none";
                    dynamicValueDefinitions: {
                        field: "state";
                        table: "incident";
                        type: "choices_from_other_table";
                    };
                    label: [
                        {
                            hint: "Workflow state of the incident";
                            label: "Incident state";
                            language: "en";
                            plural: "Incident states";
                        },
                    ];
                },
            >;
            notify: Typed<
                number,
                { default: "1"; dropdown: "dropdown_without_none"; label: "Notify" },
            >;
            origin_id: Typed<
                string
                | Record,
                { dependent: "origin_table"; label: "Origin" },
            >;
            origin_table: Typed<
                keyof Tables,
                {
                    attributes: { base_start: true };
                    label: [
                        {
                            hint: "Table of the Origin record";
                            label: "Origin table";
                            language: "en";
                            plural: "Origin tables";
                        },
                    ];
                },
            >;
            parent_incident: Typed<
                | string
                | Record<"incident">
                | ExplicitKey<"incident">
                | TableBrand<"incident">,
                {
                    attributes: { encode_utf8: false };
                    label: [
                        {
                            hint: "Can be used to collect Incidents for the same root issue";
                            label: "Parent Incident";
                            language: "en";
                            plural: "Parent Incidents";
                        },
                    ];
                    referenceFloats: true;
                    referenceQual: "javascript:'sys_id!='+current.sys_id";
                    referenceTable: "incident";
                },
            >;
            problem_id: Typed<
                | string
                | Record<"problem">
                | ExplicitKey<"problem">
                | TableBrand<"problem">,
                {
                    attributes: { encode_utf8: false };
                    label: [
                        {
                            hint: "Related problem, if one exists";
                            label: "Problem";
                            language: "en";
                            plural: "Problems";
                        },
                    ];
                    referenceFloats: true;
                    referenceTable: "problem";
                },
            >;
            reopen_count: Typed<
                number,
                {
                    default: "0";
                    label: [
                        {
                            hint: "Number of times Incident state has changed from Resolved or Closed to another state";
                            label: "Reopen count";
                            language: "en";
                            plural: "Reopen counts";
                        },
                    ];
                },
            >;
            reopened_by: Typed<
                | string
                | Record<"sys_user">
                | ExplicitKey<"sys_user">
                | TableBrand<"sys_user">,
                {
                    attributes: { encode_utf8: false; ignore_filter_on_new: true };
                    label: "Last reopened by";
                    readOnly: true;
                    readOnlyOption: "instance_configured";
                    referenceTable: "sys_user";
                },
            >;
            reopened_time: Typed<
                `${number}-${number}-${number} ${number}:${number}:${number}`,
                {
                    label: "Last reopened at";
                    readOnly: true;
                    readOnlyOption: "instance_configured";
                },
            >;
            resolved_at: Typed<
                `${number}-${number}-${number} ${number}:${number}:${number}`,
                { label: "Resolved" },
            >;
            resolved_by: Typed<
                | string
                | Record<"sys_user">
                | ExplicitKey<"sys_user">
                | TableBrand<"sys_user">,
                {
                    attributes: { encode_utf8: false; ignore_filter_on_new: true };
                    label: "Resolved by";
                    referenceFloats: true;
                    referenceTable: "sys_user";
                },
            >;
            rfc: Typed<
                | string
                | Record<"change_request">
                | ExplicitKey<"change_request">
                | TableBrand<"change_request">,
                {
                    attributes: { encode_utf8: false };
                    label: [
                        {
                            hint: "Related change, if one exists";
                            label: "Change Request";
                            language: "en";
                            plural: "Change Requests";
                        },
                    ];
                    referenceFloats: true;
                    referenceTable: "change_request";
                },
            >;
            severity: Typed<
                number,
                { default: "3"; dropdown: "dropdown_without_none"; label: "Severity" },
            >;
            subcategory: Typed<
                string,
                {
                    dependent: "category";
                    dropdown: "dropdown_with_none";
                    label: "Subcategory";
                },
            >;
            sys_id: Typed<
                string,
                {
                    label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                    primary: true;
                },
            >;
        };
        textIndex: true;
    } = ...

    Type Declaration

    • Readonlyactions: ["read", "update", "create"]
    • ReadonlyallowClientScripts: true
    • ReadonlyallowNewFields: true
    • ReadonlyallowUiActions: true
    • ReadonlyallowWebServiceAccess: true
    • Readonlyattributes: {
          "all_tables.query_hints": true;
          email_client: true;
          hasWorkflow: true;
          live_feed: true;
      }
    • Readonlyaudit: true
    • ReadonlyautoNumber: { number: 10000; prefix: "INC" }
    • Readonlyextends: "task"
    • Readonlylabel: "Incident"
    • ReadonlylicensingConfig: {
          licenseModel: "fulfiller";
          ownerCondition: "caller_id=javascript:gs.getUserID()^NQcaller_idISEMPTY^opened_by=javascript:gs.getUserID()^EQ";
      }
    • ReadonlyliveFeed: true
    • Readonlyname: "incident"
    • Readonlyschema: {
          business_impact: Typed<
              string,
              { label: "Business impact"; maxLength: 4000 },
          >;
          business_stc: Typed<
              number,
              {
                  attributes: { ignore_filter_on_new: true };
                  label: [
                      {
                          hint: "Business time elapsed (stored in seconds) before Incident was resolved";
                          label: "Business resolve time";
                          language: "en";
                          plural: "Business resolve times";
                      },
                  ];
                  readOnly: true;
                  readOnlyOption: "instance_configured";
              },
          >;
          calendar_stc: Typed<
              number,
              {
                  attributes: { ignore_filter_on_new: true };
                  label: [
                      {
                          hint: "Time elapsed (stored in seconds) before Incident was Resolved";
                          label: "Resolve time";
                          language: "en";
                          plural: "Resolve times";
                      },
                  ];
                  readOnly: true;
                  readOnlyOption: "instance_configured";
              },
          >;
          caller_id: Typed<
              | string
              | Record<"sys_user">
              | ExplicitKey<"sys_user">
              | TableBrand<"sys_user">,
              {
                  attributes: {
                      encode_utf8: false;
                      ref_contributions: "user_show_incidents";
                  };
                  default: "javascript:incidentGetCaller();";
                  dependent: "company";
                  label: [
                      {
                          hint: "Person who reported or is affected by this incident";
                          label: "Caller";
                          language: "en";
                          plural: "Callers";
                      },
                  ];
                  referenceTable: "sys_user";
              },
          >;
          category: Typed<
              string,
              { default: "inquiry"; dropdown: "dropdown_with_none"; label: "Category" },
          >;
          cause: Typed<string, { label: "Probable cause"; maxLength: 4000 }>;
          caused_by: Typed<
              | string
              | Record<"change_request">
              | ExplicitKey<"change_request">
              | TableBrand<"change_request">,
              {
                  attributes: { encode_utf8: false };
                  label: [
                      {
                          hint: "Change request that caused the incident";
                          label: "Caused by Change";
                          language: "en";
                          plural: "Caused by Changes";
                      },
                  ];
                  referenceTable: "change_request";
              },
          >;
          child_incidents: Typed<
              number,
              {
                  default: "0";
                  label: [
                      {
                          hint: "Number of child Incidents related to this Problem";
                          label: "Child Incidents";
                          language: "en";
                          plural: "Child Incidents";
                      },
                  ];
              },
          >;
          close_code: Typed<
              string,
              {
                  dropdown: "dropdown_with_none";
                  label: [
                      {
                          hint: "For use in reporting";
                          label: "Resolution code";
                          language: "en";
                          plural: "Resolution codes";
                      },
                  ];
              },
          >;
          hold_reason: Typed<
              number,
              { dropdown: "dropdown_with_none"; label: "On hold reason" },
          >;
          incident_state: Typed<
              number,
              {
                  default: "1";
                  dropdown: "dropdown_without_none";
                  dynamicValueDefinitions: {
                      field: "state";
                      table: "incident";
                      type: "choices_from_other_table";
                  };
                  label: [
                      {
                          hint: "Workflow state of the incident";
                          label: "Incident state";
                          language: "en";
                          plural: "Incident states";
                      },
                  ];
              },
          >;
          notify: Typed<
              number,
              { default: "1"; dropdown: "dropdown_without_none"; label: "Notify" },
          >;
          origin_id: Typed<
              string
              | Record,
              { dependent: "origin_table"; label: "Origin" },
          >;
          origin_table: Typed<
              keyof Tables,
              {
                  attributes: { base_start: true };
                  label: [
                      {
                          hint: "Table of the Origin record";
                          label: "Origin table";
                          language: "en";
                          plural: "Origin tables";
                      },
                  ];
              },
          >;
          parent_incident: Typed<
              | string
              | Record<"incident">
              | ExplicitKey<"incident">
              | TableBrand<"incident">,
              {
                  attributes: { encode_utf8: false };
                  label: [
                      {
                          hint: "Can be used to collect Incidents for the same root issue";
                          label: "Parent Incident";
                          language: "en";
                          plural: "Parent Incidents";
                      },
                  ];
                  referenceFloats: true;
                  referenceQual: "javascript:'sys_id!='+current.sys_id";
                  referenceTable: "incident";
              },
          >;
          problem_id: Typed<
              | string
              | Record<"problem">
              | ExplicitKey<"problem">
              | TableBrand<"problem">,
              {
                  attributes: { encode_utf8: false };
                  label: [
                      {
                          hint: "Related problem, if one exists";
                          label: "Problem";
                          language: "en";
                          plural: "Problems";
                      },
                  ];
                  referenceFloats: true;
                  referenceTable: "problem";
              },
          >;
          reopen_count: Typed<
              number,
              {
                  default: "0";
                  label: [
                      {
                          hint: "Number of times Incident state has changed from Resolved or Closed to another state";
                          label: "Reopen count";
                          language: "en";
                          plural: "Reopen counts";
                      },
                  ];
              },
          >;
          reopened_by: Typed<
              | string
              | Record<"sys_user">
              | ExplicitKey<"sys_user">
              | TableBrand<"sys_user">,
              {
                  attributes: { encode_utf8: false; ignore_filter_on_new: true };
                  label: "Last reopened by";
                  readOnly: true;
                  readOnlyOption: "instance_configured";
                  referenceTable: "sys_user";
              },
          >;
          reopened_time: Typed<
              `${number}-${number}-${number} ${number}:${number}:${number}`,
              {
                  label: "Last reopened at";
                  readOnly: true;
                  readOnlyOption: "instance_configured";
              },
          >;
          resolved_at: Typed<
              `${number}-${number}-${number} ${number}:${number}:${number}`,
              { label: "Resolved" },
          >;
          resolved_by: Typed<
              | string
              | Record<"sys_user">
              | ExplicitKey<"sys_user">
              | TableBrand<"sys_user">,
              {
                  attributes: { encode_utf8: false; ignore_filter_on_new: true };
                  label: "Resolved by";
                  referenceFloats: true;
                  referenceTable: "sys_user";
              },
          >;
          rfc: Typed<
              | string
              | Record<"change_request">
              | ExplicitKey<"change_request">
              | TableBrand<"change_request">,
              {
                  attributes: { encode_utf8: false };
                  label: [
                      {
                          hint: "Related change, if one exists";
                          label: "Change Request";
                          language: "en";
                          plural: "Change Requests";
                      },
                  ];
                  referenceFloats: true;
                  referenceTable: "change_request";
              },
          >;
          severity: Typed<
              number,
              { default: "3"; dropdown: "dropdown_without_none"; label: "Severity" },
          >;
          subcategory: Typed<
              string,
              {
                  dependent: "category";
                  dropdown: "dropdown_with_none";
                  label: "Subcategory";
              },
          >;
          sys_id: Typed<
              string,
              {
                  label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                  primary: true;
              },
          >;
      }
    • ReadonlytextIndex: true