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

    Variable cmn_locationConst

    cmn_location: {
        actions: ["read", "update", "create"];
        allowClientScripts: true;
        allowNewFields: true;
        allowUiActions: true;
        allowWebServiceAccess: true;
        attributes: {
            "all_tables.text_index_translations": true;
            kagami_csindex_enabled: true;
        };
        display: "name";
        label: "Location";
        name: "cmn_location";
        schema: {
            city: Typed<string, { label: "City" }>;
            cmn_location_source: Typed<
                string,
                {
                    dropdown: "dropdown_with_none";
                    label: [
                        {
                            hint: "Discovery source for this location";
                            label: "Location source";
                            language: "en";
                            plural: "Location sources";
                        },
                    ];
                },
            >;
            cmn_location_type: Typed<
                string,
                { dropdown: "dropdown_with_none"; label: "Location type" },
            >;
            company: Typed<
                | string
                | Record<"core_company">
                | ExplicitKey<"core_company">
                | TableBrand<"core_company">,
                { label: "Company"; referenceTable: "core_company" },
            >;
            contact: Typed<
                | string
                | Record<"sys_user">
                | ExplicitKey<"sys_user">
                | TableBrand<"sys_user">,
                { dependent: "company"; label: "Contact"; referenceTable: "sys_user" },
            >;
            coordinates_retrieved_on: Typed<
                `${number}-${number}-${number} ${number}:${number}:${number}`,
                {
                    label: [
                        {
                            hint: "Date and time when the latitide and longitude are populated";
                            label: "Coordinates retrieved on";
                            language: "en";
                            plural: "Coordinates retrieved ons";
                        },
                    ];
                },
            >;
            country: Typed<
                StringWithSuggestions<string>,
                { dropdown: "suggestion"; label: "Country" },
            >;
            duplicate: Typed<
                boolean,
                {
                    label: [
                        {
                            hint: "If true, this location is a duplicate of another existing location record";
                            label: "Duplicate";
                            language: "en";
                            plural: "Duplicates";
                        },
                    ];
                },
            >;
            fax_phone: Typed<string, { label: "Fax phone" }>;
            full_name: Typed<
                string,
                {
                    label: [
                        {
                            hint: "System maintained field";
                            label: "Full name";
                            language: "en";
                            plural: "Full names";
                        },
                    ];
                    maxLength: 255;
                },
            >;
            lat_long_error: Typed<
                string,
                { label: "Lat long error"; maxLength: 1000 },
            >;
            latitude: Typed<number, { label: "Latitude"; maxLength: 40 }>;
            life_cycle_stage: Typed<
                | string
                | Record<"life_cycle_stage">
                | ExplicitKey<"life_cycle_stage">
                | TableBrand<"life_cycle_stage">,
                {
                    label: "Life Cycle Stage";
                    maxLength: 40;
                    referenceKey: "name";
                    referenceQual: "javascript: new LifeCycleUtil().filterLifeCycleStage()";
                    referenceTable: "life_cycle_stage";
                },
            >;
            life_cycle_stage_status: Typed<
                | string
                | Record<"life_cycle_stage_status">
                | ExplicitKey<"life_cycle_stage_status">
                | TableBrand<"life_cycle_stage_status">,
                {
                    label: "Life Cycle Stage Status";
                    maxLength: 40;
                    referenceKey: "name";
                    referenceQual: "javascript: new LifeCycleUtil().filterLifeCycleStageStatus()";
                    referenceTable: "life_cycle_stage_status";
                },
            >;
            longitude: Typed<number, { label: "Longitude"; maxLength: 40 }>;
            managed_by_group: Typed<
                | string
                | Record<"sys_user_group">
                | ExplicitKey<"sys_user_group">
                | TableBrand<"sys_user_group">,
                {
                    label: [
                        {
                            hint: "User group responsible for managing this location";
                            label: "Managed by group";
                            language: "en";
                            plural: "Managed by groups";
                        },
                    ];
                    referenceTable: "sys_user_group";
                },
            >;
            name: Typed<string, { label: "Name"; maxLength: 100 }>;
            parent: Typed<
                | string
                | Record<"cmn_location">
                | ExplicitKey<"cmn_location">
                | TableBrand<"cmn_location">,
                {
                    attributes: { tree_picker: true };
                    cascadeRule: "restrict";
                    label: "Parent";
                    referenceTable: "cmn_location";
                },
            >;
            parent_hp1: Typed<
                string
                | number,
                {
                    attributes: {
                        loader_exempt: true;
                        serializer: "com.glide.script.OmittedElementXMLSerializer";
                    };
                    columnType: "record_hierarchy_path";
                    label: "Parent HP1";
                    maxLength: 255;
                    readOnly: true;
                },
            >;
            phone: Typed<string, { label: "Phone" }>;
            phone_territory: Typed<
                | string
                | Record<"sys_phone_territory">
                | ExplicitKey<"sys_phone_territory">
                | TableBrand<"sys_phone_territory">,
                {
                    attributes: { encode_utf8: false };
                    label: "Phone territory";
                    referenceTable: "sys_phone_territory";
                },
            >;
            primary_location: Typed<
                | string
                | Record<"cmn_location">
                | ExplicitKey<"cmn_location">
                | TableBrand<"cmn_location">,
                {
                    label: [
                        {
                            hint: "Original location this location is duplicating";
                            label: "Primary location";
                            language: "en";
                            plural: "Primary locations";
                        },
                    ];
                    referenceTable: "cmn_location";
                },
            >;
            state: Typed<string, { label: "State / Province" }>;
            stock_room: Typed<boolean, { default: false; label: "Stock room" }>;
            street: Typed<string, { label: "Street"; maxLength: 255 }>;
            sys_created_by: Typed<
                string,
                {
                    label: [
                        { label: "Created by"; language: "en"; plural: "Created by" },
                    ];
                },
            >;
            sys_created_on: Typed<
                `${number}-${number}-${number} ${number}:${number}:${number}`,
                { label: [{ label: "Created"; language: "en"; plural: "Created" }] },
            >;
            sys_id: Typed<
                string,
                {
                    label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                    primary: true;
                },
            >;
            sys_mod_count: Typed<
                number,
                { label: [{ label: "Updates"; language: "en"; plural: "Updates" }] },
            >;
            sys_updated_by: Typed<
                string,
                {
                    label: [
                        { label: "Updated by"; language: "en"; plural: "Updated by" },
                    ];
                },
            >;
            sys_updated_on: Typed<
                `${number}-${number}-${number} ${number}:${number}:${number}`,
                { label: [{ label: "Updated"; language: "en"; plural: "Updated" }] },
            >;
            time_zone: Typed<
                string,
                {
                    dropdown: "dropdown_without_none";
                    dynamicValueDefinitions: {
                        field: "time_zone";
                        table: "sys_user";
                        type: "choices_from_other_table";
                    };
                    label: "Time zone";
                },
            >;
            zip: Typed<string, { label: "Zip / Postal Code" }>;
        };
        textIndex: true;
    } = ...

    Type Declaration

    • Readonlyactions: ["read", "update", "create"]
    • ReadonlyallowClientScripts: true
    • ReadonlyallowNewFields: true
    • ReadonlyallowUiActions: true
    • ReadonlyallowWebServiceAccess: true
    • Readonlyattributes: { "all_tables.text_index_translations": true; kagami_csindex_enabled: true }
    • Readonlydisplay: "name"
    • Readonlylabel: "Location"
    • Readonlyname: "cmn_location"
    • Readonlyschema: {
          city: Typed<string, { label: "City" }>;
          cmn_location_source: Typed<
              string,
              {
                  dropdown: "dropdown_with_none";
                  label: [
                      {
                          hint: "Discovery source for this location";
                          label: "Location source";
                          language: "en";
                          plural: "Location sources";
                      },
                  ];
              },
          >;
          cmn_location_type: Typed<
              string,
              { dropdown: "dropdown_with_none"; label: "Location type" },
          >;
          company: Typed<
              | string
              | Record<"core_company">
              | ExplicitKey<"core_company">
              | TableBrand<"core_company">,
              { label: "Company"; referenceTable: "core_company" },
          >;
          contact: Typed<
              | string
              | Record<"sys_user">
              | ExplicitKey<"sys_user">
              | TableBrand<"sys_user">,
              { dependent: "company"; label: "Contact"; referenceTable: "sys_user" },
          >;
          coordinates_retrieved_on: Typed<
              `${number}-${number}-${number} ${number}:${number}:${number}`,
              {
                  label: [
                      {
                          hint: "Date and time when the latitide and longitude are populated";
                          label: "Coordinates retrieved on";
                          language: "en";
                          plural: "Coordinates retrieved ons";
                      },
                  ];
              },
          >;
          country: Typed<
              StringWithSuggestions<string>,
              { dropdown: "suggestion"; label: "Country" },
          >;
          duplicate: Typed<
              boolean,
              {
                  label: [
                      {
                          hint: "If true, this location is a duplicate of another existing location record";
                          label: "Duplicate";
                          language: "en";
                          plural: "Duplicates";
                      },
                  ];
              },
          >;
          fax_phone: Typed<string, { label: "Fax phone" }>;
          full_name: Typed<
              string,
              {
                  label: [
                      {
                          hint: "System maintained field";
                          label: "Full name";
                          language: "en";
                          plural: "Full names";
                      },
                  ];
                  maxLength: 255;
              },
          >;
          lat_long_error: Typed<string, { label: "Lat long error"; maxLength: 1000 }>;
          latitude: Typed<number, { label: "Latitude"; maxLength: 40 }>;
          life_cycle_stage: Typed<
              | string
              | Record<"life_cycle_stage">
              | ExplicitKey<"life_cycle_stage">
              | TableBrand<"life_cycle_stage">,
              {
                  label: "Life Cycle Stage";
                  maxLength: 40;
                  referenceKey: "name";
                  referenceQual: "javascript: new LifeCycleUtil().filterLifeCycleStage()";
                  referenceTable: "life_cycle_stage";
              },
          >;
          life_cycle_stage_status: Typed<
              | string
              | Record<"life_cycle_stage_status">
              | ExplicitKey<"life_cycle_stage_status">
              | TableBrand<"life_cycle_stage_status">,
              {
                  label: "Life Cycle Stage Status";
                  maxLength: 40;
                  referenceKey: "name";
                  referenceQual: "javascript: new LifeCycleUtil().filterLifeCycleStageStatus()";
                  referenceTable: "life_cycle_stage_status";
              },
          >;
          longitude: Typed<number, { label: "Longitude"; maxLength: 40 }>;
          managed_by_group: Typed<
              | string
              | Record<"sys_user_group">
              | ExplicitKey<"sys_user_group">
              | TableBrand<"sys_user_group">,
              {
                  label: [
                      {
                          hint: "User group responsible for managing this location";
                          label: "Managed by group";
                          language: "en";
                          plural: "Managed by groups";
                      },
                  ];
                  referenceTable: "sys_user_group";
              },
          >;
          name: Typed<string, { label: "Name"; maxLength: 100 }>;
          parent: Typed<
              | string
              | Record<"cmn_location">
              | ExplicitKey<"cmn_location">
              | TableBrand<"cmn_location">,
              {
                  attributes: { tree_picker: true };
                  cascadeRule: "restrict";
                  label: "Parent";
                  referenceTable: "cmn_location";
              },
          >;
          parent_hp1: Typed<
              string
              | number,
              {
                  attributes: {
                      loader_exempt: true;
                      serializer: "com.glide.script.OmittedElementXMLSerializer";
                  };
                  columnType: "record_hierarchy_path";
                  label: "Parent HP1";
                  maxLength: 255;
                  readOnly: true;
              },
          >;
          phone: Typed<string, { label: "Phone" }>;
          phone_territory: Typed<
              | string
              | Record<"sys_phone_territory">
              | ExplicitKey<"sys_phone_territory">
              | TableBrand<"sys_phone_territory">,
              {
                  attributes: { encode_utf8: false };
                  label: "Phone territory";
                  referenceTable: "sys_phone_territory";
              },
          >;
          primary_location: Typed<
              | string
              | Record<"cmn_location">
              | ExplicitKey<"cmn_location">
              | TableBrand<"cmn_location">,
              {
                  label: [
                      {
                          hint: "Original location this location is duplicating";
                          label: "Primary location";
                          language: "en";
                          plural: "Primary locations";
                      },
                  ];
                  referenceTable: "cmn_location";
              },
          >;
          state: Typed<string, { label: "State / Province" }>;
          stock_room: Typed<boolean, { default: false; label: "Stock room" }>;
          street: Typed<string, { label: "Street"; maxLength: 255 }>;
          sys_created_by: Typed<
              string,
              { label: [{ label: "Created by"; language: "en"; plural: "Created by" }] },
          >;
          sys_created_on: Typed<
              `${number}-${number}-${number} ${number}:${number}:${number}`,
              { label: [{ label: "Created"; language: "en"; plural: "Created" }] },
          >;
          sys_id: Typed<
              string,
              {
                  label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                  primary: true;
              },
          >;
          sys_mod_count: Typed<
              number,
              { label: [{ label: "Updates"; language: "en"; plural: "Updates" }] },
          >;
          sys_updated_by: Typed<
              string,
              { label: [{ label: "Updated by"; language: "en"; plural: "Updated by" }] },
          >;
          sys_updated_on: Typed<
              `${number}-${number}-${number} ${number}:${number}:${number}`,
              { label: [{ label: "Updated"; language: "en"; plural: "Updated" }] },
          >;
          time_zone: Typed<
              string,
              {
                  dropdown: "dropdown_without_none";
                  dynamicValueDefinitions: {
                      field: "time_zone";
                      table: "sys_user";
                      type: "choices_from_other_table";
                  };
                  label: "Time zone";
              },
          >;
          zip: Typed<string, { label: "Zip / Postal Code" }>;
      }
    • ReadonlytextIndex: true