---
id: object/table/2681
type: object
title: Table 2681 "Data Search Setup (Table)"
summary: Table 2681 "Data Search Setup (Table)" in DataSearch (Microsoft.Foundation.DataSearch). 6 fields, 4 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - datasearch
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: b9077edafce7f00bb108a321bbb60f3d36dd15547a3503938ddb635c81f6dce6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/DataSearch/app/DataSearchSetupTable.Table.al
    title: src/Apps/W1/DataSearch/app/DataSearchSetupTable.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 2681
name: Data Search Setup (Table)
caption: Search Setup (Table)
namespace: Microsoft.Foundation.DataSearch
app: DataSearch
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 6
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 0
  called_by: 0
  implements: 0
---

# Table 2681 "Data Search Setup (Table)"

> Table 2681 "Data Search Setup (Table)" in DataSearch (Microsoft.Foundation.DataSearch). 6 fields, 4 public procedures. Introduced in BC29, still in BC30.

DataSearch · Microsoft.Foundation.DataSearch · captioned "Search Setup (Table)" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/DataSearch/app/DataSearchSetupTable.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Search Setup (Table) |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Table No. | Integer | — | TableRelation AllObjWithCaption."Object ID" where("Object Type" = const(Table)); DataClassification SystemMetadata |
| 2 | Table Subtype | Integer | — | DataClassification SystemMetadata |
| 3 | Role Center ID | Integer | — | DataClassification SystemMetadata |
| 4 | No. of Hits | Integer | — | DataClassification CustomerContent |
| 5 | Table/Type ID | Integer | — | AutoIncrement; DataClassification SystemMetadata |
| 9 | Table Caption | Text[250] | — | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Table), "Object ID" = field("Table No."))) |

## Keys

- Key1: Role Center ID, Table No., Table Subtype (clustered)
- Key2: No. of Hits
- Key3: Table/Type ID

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 2687 "Data Search Setup Changes"](../codeunit/2687.md) OnAfterDeleteSetupTable
- OnAfterInsertEvent: [Codeunit 2687 "Data Search Setup Changes"](../codeunit/2687.md) OnAfterInserSetupTable

## Procedures

- `InsertRec(WithSubTypes: Boolean)` (internal): Used for also inserting related records, e.g. for SalesHeader that has several subtypes
- `DeleteRec(WithSubTypes: Boolean)` (internal): Used for also deleting related records, e.g. for SalesHeader that has several subtypes
- `GetProfileID(): Code[30]` (internal)
- `GetRoleCenterID(): Integer`

## Triggers

OnInsert

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Data Search Setup (Table)")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
