---
id: object/codeunit/20141
type: object
title: Codeunit 20141 "Lookup Entity Mgmt."
summary: Codeunit 20141 "Lookup Entity Mgmt." in INTaxEngine (Microsoft.Finance.TaxEngine.Core). 6 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - intaxengine
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: 278653c266d5727ab55f31e3247bd3a6b21bc3e6c68e6e59a13d143ea79e2c13
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-Core/src/Lookup/codeunit/LookupEntityMgmt.Codeunit.al
    title: src/Apps/W1/INTaxEngine/app/TaxEngine-Core/src/Lookup/codeunit/LookupEntityMgmt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 20141
name: Lookup Entity Mgmt.
namespace: Microsoft.Finance.TaxEngine.Core
app: INTaxEngine
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: 0
  procedures: 6
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 34
  implements: 0
---

# Codeunit 20141 "Lookup Entity Mgmt."

> Codeunit 20141 "Lookup Entity Mgmt." in INTaxEngine (Microsoft.Finance.TaxEngine.Core). 6 public procedures. Introduced in BC29, still in BC30.

INTaxEngine · Microsoft.Finance.TaxEngine.Core · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-Core/src/Lookup/codeunit/LookupEntityMgmt.Codeunit.al) · facts from BC29

## Procedures

- `CreateTableSorting(CaseID: Guid; ScriptID: Guid; TableID: Integer): Guid`
- `DeleteTableSorting(CaseID: Guid; ScriptID: Guid; var ID: Guid): Guid`
- `CreateTableFilters(CaseID: Guid; ScriptID: Guid; TableID: Integer): Guid`: Table Filters
- `DeleteTableFilters(CaseID: Guid; ScriptID: Guid; var ID: Guid): Guid`
- `CreateLookup(CaseID: Guid; ScriptID: Guid): Guid`: Lookup Functions
- `DeleteLookup(CaseID: Guid; ScriptID: Guid; var ID: Guid)`

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 20134 "Script Symbol Store"](../codeunit/20134.md) (3 calls: `CreateLookup → OnBeforeValidateIfUpdateIsAllowed`, `CreateTableFilters → OnBeforeValidateIfUpdateIsAllowed`, `CreateTableSorting → OnBeforeValidateIfUpdateIsAllowed`)

## Called by

- [Table 20338 "Tax Posting Setup"](../table/20338.md) (4 calls: `ClearLookup → DeleteLookup`, `ClearTableFilers → DeleteTableFilters`, `OnDelete → DeleteLookup`, …)
- [Codeunit 20142 "Lookup Mgmt."](../codeunit/20142.md) (2 calls: `ConvertConstantToLookup → CreateLookup`, `ConvertLookupToConstant → DeleteLookup`)
- [Codeunit 20345 "Tax Posting Handler"](../codeunit/20345.md) (2 calls: `OnAfterValidatePostingTableID → DeleteTableFilters`, `OnBeforeDeleteTaxUseCase → DeleteTableFilters`)
- [Page 20142 "Script Symbol Lookup Dialog"](../page/20142.md) (2 calls: `HandleSourceTypeChange → DeleteTableFilters`, `HandleTableChange → DeleteTableFilters`)
- [Page 20171 "Action Loop Through Rec. Dlg"](../page/20171.md) (2 calls: `ResetFields → DeleteTableFilters`, `ResetFields → DeleteTableSorting`)
- [Table 20144 "Script Symbol Lookup"](../table/20144.md) (2 calls: `OnDelete → DeleteTableFilters`, `OnDelete → DeleteTableSorting`)
- [Table 20175 "Action Loop Through Records"](../table/20175.md) (2 calls: `OnDelete → DeleteTableFilters`, `OnDelete → DeleteTableSorting`)
- [Page 20283 "Switch Statements"](../page/20283.md) (1 call: `OpenLookupDialog → CreateLookup`)
- [Page 20286 "Tax Table Relation Dialog"](../page/20286.md) (1 call: `HandleTableChange → DeleteTableFilters`)
- [Table 20140 "Lookup Field Filter"](../table/20140.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20158 "Action Concatenate Line"](../table/20158.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20160 "Action Convert Case"](../table/20160.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20161 "Action Date Calculation"](../table/20161.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20162 "Action Date To DateTime"](../table/20162.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20163 "Action Extract Date Part"](../table/20163.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20164 "Action Extract DateTime Part"](../table/20164.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20165 "Action Ext. Substr. From Index"](../table/20165.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20166 "Action Ext. Substr. From Pos."](../table/20166.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20167 "Action Find Date Interval"](../table/20167.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20168 "Action Find Substring"](../table/20168.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20172 "Action Length Of String"](../table/20172.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20173 "Action Loop N Times"](../table/20173.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20177 "Action Message"](../table/20177.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20178 "Action Number Calculation"](../table/20178.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20180 "Action Number Expr. Token"](../table/20180.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20181 "Action Replace Substring"](../table/20181.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20182 "Action Round Number"](../table/20182.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20183 "Action Set Variable"](../table/20183.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20185 "Action String Expr. Token"](../table/20185.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20191 "Tax Test Condition Item"](../table/20191.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20283 "Switch Case"](../table/20283.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20286 "Tax Component Expr. Token"](../table/20286.md) (1 call: `OnDelete → DeleteLookup`)
- [Table 20287 "Tax Table Relation"](../table/20287.md) (1 call: `OnDelete → DeleteTableFilters`)
- [Table 20335 "Tax Insert Record Field"](../table/20335.md) (1 call: `OnDelete → DeleteLookup`)

## 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). The call sections above are our own, per object, from the BC29 call graph. 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: "codeunit", object_name: "Lookup Entity Mgmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
