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

    Type Alias Table<S, E>

    Table: {
        actions?: ("read" | "update" | "delete" | "create")[];
        attributes?: Record<string, string | number | boolean>;
        audit?: boolean;
        display?: string;
        extends?: E;
        extensible?: boolean;
        index?: {
            element: (keyof S)[] | keyof S | string & {} | (string & {})[];
            name: string;
            unique: boolean;
        }[];
        label?: string
        | Documentation[];
        name: string;
        schema: S;
    } & (
        | {
            accessible_from?: never;
            accessibleFrom?: "public"
            | "package_private";
            allow_client_scripts?: never;
            allow_new_fields?: never;
            allow_ui_actions?: never;
            allow_web_service_access?: never;
            allowClientScripts?: boolean;
            allowNewFields?: boolean;
            allowUiActions?: boolean;
            allowWebServiceAccess?: boolean;
            auto_number?: never;
            autoNumber?: { number?: number; numberOfDigits?: number; prefix?: string };
            caller_access?: never;
            callerAccess?: "none" | "tracking" | "restricted";
            licensing_config?: never;
            licensingConfig?: LicensingConfig;
            live_feed?: never;
            liveFeed?: boolean;
            read_only?: never;
            readOnly?: boolean;
            scriptable_table?: never;
            scriptableTable?: boolean;
            text_index?: never;
            textIndex?: boolean;
        }
        | {
            accessible_from?: "public"
            | "package_private";
            accessibleFrom?: never;
            allow_client_scripts?: boolean;
            allow_new_fields?: boolean;
            allow_ui_actions?: boolean;
            allow_web_service_access?: boolean;
            allowClientScripts?: never;
            allowNewFields?: never;
            allowUiActions?: never;
            allowWebServiceAccess?: never;
            auto_number?: {
                number?: number;
                number_of_digits?: number;
                prefix?: string;
            };
            autoNumber?: never;
            caller_access?: "none"
            | "tracking"
            | "restricted";
            callerAccess?: never;
            licensing_config?: LicensingConfig;
            licensingConfig?: never;
            live_feed?: boolean;
            liveFeed?: never;
            read_only?: boolean;
            readOnly?: never;
            scriptable_table?: boolean;
            scriptableTable?: never;
            text_index?: boolean;
            textIndex?: never;
        }
    )

    Creates a table in a scoped application (sys_db_object).

    Type Parameters

    Type Declaration

    • Optionalactions?: ("read" | "update" | "delete" | "create")[]

      List of access options for the table.

    • Optionalattributes?: Record<string, string | number | boolean>

      Pairs of any supported dictionary attributes (sys_schema_attribute).

    • Optionalaudit?: boolean

      Indicates whether to track the creation, update, and deletion of all records in the table.

    • Optionaldisplay?: string

      Default display column. Use a column name from the schema.

    • Optionalextends?: E

      The name of any other table on which this table is based.

    • Optionalextensible?: boolean

      Indicates whether other tables can extend this table.

    • Optionalindex?: {
          element: (keyof S)[] | keyof S | string & {} | (string & {})[];
          name: string;
          unique: boolean;
      }[]

      A list of column references to generate indexes in the metadata XML of the table.

    • Optionallabel?: string | Documentation[]

      A unique label for the table on list and form views.

    • name: string

      Name of the table. Must be lowercase and include the application scope

    • schema: S

      Array of column references that define the table's schema

    • {
          accessible_from?: never;
          accessibleFrom?: "public" | "package_private";
          allow_client_scripts?: never;
          allow_new_fields?: never;
          allow_ui_actions?: never;
          allow_web_service_access?: never;
          allowClientScripts?: boolean;
          allowNewFields?: boolean;
          allowUiActions?: boolean;
          allowWebServiceAccess?: boolean;
          auto_number?: never;
          autoNumber?: { number?: number; numberOfDigits?: number; prefix?: string };
          caller_access?: never;
          callerAccess?: "none" | "tracking" | "restricted";
          licensing_config?: never;
          licensingConfig?: LicensingConfig;
          live_feed?: never;
          liveFeed?: boolean;
          read_only?: never;
          readOnly?: boolean;
          scriptable_table?: never;
          scriptableTable?: boolean;
          text_index?: never;
          textIndex?: boolean;
      }
      • Optionalaccessible_from?: never

        Use accessibleFrom instead

      • OptionalaccessibleFrom?: "public" | "package_private"

        Application scopes that can access the table.

      • Optionalallow_client_scripts?: never

        Use allowClientScripts instead

      • Optionalallow_new_fields?: never

        Use allowNewFields instead

      • Optionalallow_ui_actions?: never

        Use allowUiActions instead

      • Optionalallow_web_service_access?: never

        Use allowWebServiceAccess instead

      • OptionalallowClientScripts?: boolean

        Indicates whether to allow design time configuration of client scripts on the table from other application scopes.

      • OptionalallowNewFields?: boolean

        Indicates whether to allow design time configuration of new fields on the table from other application scope.

      • OptionalallowUiActions?: boolean

        Indicates whether to allow design time configuration of UI Actions on the table from other application scopes.

      • OptionalallowWebServiceAccess?: boolean

        Indicates whether web services can make calls to the table.

      • Optionalauto_number?: never

        Use autoNumber instead

      • OptionalautoNumber?: { number?: number; numberOfDigits?: number; prefix?: string }

        Auto-numbering configuration for the table.

      • Optionalcaller_access?: never

        Use callerAccess instead

      • OptionalcallerAccess?: "none" | "tracking" | "restricted"

        Access level for cross-scope requests.

      • Optionallicensing_config?: never

        Use licensingConfig instead

      • OptionallicensingConfig?: LicensingConfig

        Configuration for table licensing.

      • Optionallive_feed?: never

        Use liveFeed instead

      • OptionalliveFeed?: boolean

        Indicates if live feeds are available for records in the table.

      • Optionalread_only?: never

        Use readOnly instead

      • OptionalreadOnly?: boolean

        Indicates whether users can edit fields in the table.

      • Optionalscriptable_table?: never

        use scriptableTable instead

      • OptionalscriptableTable?: boolean

        Indicates whether the table is a remote table that uses data retrieved from an external source.

      • Optionaltext_index?: never

        Use textIndex instead

      • OptionaltextIndex?: boolean

        Indicates whether search engines index the text in a table.

    • {
          accessible_from?: "public" | "package_private";
          accessibleFrom?: never;
          allow_client_scripts?: boolean;
          allow_new_fields?: boolean;
          allow_ui_actions?: boolean;
          allow_web_service_access?: boolean;
          allowClientScripts?: never;
          allowNewFields?: never;
          allowUiActions?: never;
          allowWebServiceAccess?: never;
          auto_number?: {
              number?: number;
              number_of_digits?: number;
              prefix?: string;
          };
          autoNumber?: never;
          caller_access?: "none"
          | "tracking"
          | "restricted";
          callerAccess?: never;
          licensing_config?: LicensingConfig;
          licensingConfig?: never;
          live_feed?: boolean;
          liveFeed?: never;
          read_only?: boolean;
          readOnly?: never;
          scriptable_table?: boolean;
          scriptableTable?: never;
          text_index?: boolean;
          textIndex?: never;
      }
      • Optionalaccessible_from?: "public" | "package_private"

        Use accessibleFrom instead

      • OptionalaccessibleFrom?: never

        Application scopes that can access the table.

      • Optionalallow_client_scripts?: boolean

        Use allowClientScripts instead

      • Optionalallow_new_fields?: boolean

        Use allowNewFields instead

      • Optionalallow_ui_actions?: boolean

        Use allowUiActions instead

      • Optionalallow_web_service_access?: boolean

        Use allowWebServiceAccess instead

      • OptionalallowClientScripts?: never

        Indicates whether to allow design time configuration of client scripts on the table from other application scopes.

      • OptionalallowNewFields?: never

        Indicates whether to allow design time configuration of new fields on the table from other application scope.

      • OptionalallowUiActions?: never

        Indicates whether to allow design time configuration of UI Actions on the table from other application scopes.

      • OptionalallowWebServiceAccess?: never

        Indicates whether web services can make calls to the table.

      • Optionalauto_number?: { number?: number; number_of_digits?: number; prefix?: string }

        Use autoNumber instead

      • OptionalautoNumber?: never

        Auto-numbering configuration for the table.

      • Optionalcaller_access?: "none" | "tracking" | "restricted"

        Use callerAccess instead

      • OptionalcallerAccess?: never

        Access level for cross-scope requests.

      • Optionallicensing_config?: LicensingConfig

        Use licensingConfig instead

      • OptionallicensingConfig?: never

        Configuration for table licensing.

      • Optionallive_feed?: boolean

        Use liveFeed instead

      • OptionalliveFeed?: never

        Indicates if live feeds are available for records in the table.

      • Optionalread_only?: boolean

        Use readOnly instead

      • OptionalreadOnly?: never

        Indicates whether users can edit fields in the table.

      • Optionalscriptable_table?: boolean

        use scriptableTable instead

      • OptionalscriptableTable?: never

        Indicates whether the table is a remote table that uses data retrieved from an external source.

      • Optionaltext_index?: boolean

        Use textIndex instead

      • OptionaltextIndex?: never

        Indicates whether search engines index the text in a table.

    an object containing the following properties:

    • name - name of the table. Must be lowercase and include the application scope
    • schema - array of column references
    • accessibleFrom? - application scopes that can access the table.
    • actions? - A list of access options
    • allowClientScripts? - indicates whether to allow design time configuration of client scripts on the table from other application scopes
    • allowNewFields? - indicates whether to allow design time configuration of new fields on the table from other application scope
    • allowUiActions? - indicates whether to allow design time configuration of UI actions on the table from other application scope
    • allowWebServiceAccess? - indicates whether web services can make calls to the table
    • attributes? - pairs of any supported dictionary attributes (sys_schema_attribute)
    • audit? - indicates whether to track the creation, update, and deletion of all records in the table
    • autoNumber? - auto-numbering configuration (sys_number) for a table. For more information, see auto_number object
    • callerAccess? - access level for cross-scope requests
    • display? - default display column. Use a column name from the schema property
    • extends? - the name of any other table on which the table is based. Extending a base table incorporates all the fields of the original table and creates system fields for the new table
    • extensible? - indicates whether other tables can extend the table
    • index? - list of column references to generate indexes in the metadata XML of the table
    • label? - a unique label for the table on list and form views.
    • liveFeed? - indicates if live feeds are available for records in the table
    • readOnly? - indicates whether users can edit fields in the table
    • textIndex? - indicates whether search engines index the text in a table