---
id: object/codeunit/20132
type: object
title: Codeunit 20132 "Script Data Type Mgmt."
summary: Codeunit 20132 "Script Data Type Mgmt." in INTaxEngine (Microsoft.Finance.TaxEngine.Core). 46 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: aedae536245e289a0a61c8b739a5263127165b1ed8c2d1709edb5b89891a4a1f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-Core/src/Core/Codeunit/ScriptDataTypeMgmt.Codeunit.al
    title: src/Apps/W1/INTaxEngine/app/TaxEngine-Core/src/Core/Codeunit/ScriptDataTypeMgmt.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: 20132
name: Script Data Type 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: 49
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 29
  implements: 0
---

# Codeunit 20132 "Script Data Type Mgmt."

> Codeunit 20132 "Script Data Type Mgmt." in INTaxEngine (Microsoft.Finance.TaxEngine.Core). 46 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/Core/Codeunit/ScriptDataTypeMgmt.Codeunit.al) · facts from BC29

## Procedures

- `GetFieldDatatype(TableID: Integer; FieldID: Integer): Enum "Symbol Data Type"`
- `GetLookupOptionString(CaseID: Guid; ScriptID: Guid; ID: Guid): Text`
- `EvaluateDate(var Date: Date; DateText: Text; DateFormat: Text): Boolean`
- `EvaluateDateTime(var DateTime: DateTime; DateText: Text; DateFormat: Text): Boolean`
- `IsNumber(Text: Text): Boolean`
- `IsBoolean(Text: Text): Boolean`
- `IsRecID(Text: Text): Boolean`
- `IsDate(Text: Text): Boolean`
- `IsTime(Text: Text): Boolean`
- `IsDateTime(Text: Text): Boolean`
- `IsGUID(Text: Text): Boolean`
- `IsOption(Text: Text; OptionString: Text): Boolean`
- `IsBlob(var Value: Variant): Boolean`
- `ConvertText2Type(Text: Text; ToDatatype: Enum "Symbol Data Type"; OptionString: Text; var ConvertedValue: Variant)`: Type Convertion
- `Text2Number(Text: Text): Decimal`
- `Text2Boolean(Text: Text): Boolean`
- `Text2Date(Text: Text): Date`
- `Text2Time(Text: Text): Time`
- `Text2DateTime(Text: Text): DateTime`
- `Text2GUID(Text: Text): Guid`
- `Text2RecordID(Text: Text; var RecordID: RecordID)`
- `Text2BLOB(Text: Text; var FieldRef: FieldRef)`
- `Variant2Text(Value: Variant; FormatExpr: Text): Text`: Variant
- `Variant2Option(Value: Variant; OptionString: Text; var OptionValue: Option)`
- `Variant2Number(Value: Variant): Decimal`
- `Variant2Boolean(Value: Variant): Boolean`
- `Variant2Date(Value: Variant): Date`
- `Variant2Time(Value: Variant): Time`
- `Variant2DateTime(Value: Variant): DateTime`
- `Variant2GUID(Value: Variant): Guid`
- `Variant2RecordID(Value: Variant; var RecordID: RecordID)`
- `EvaluateExpression(Expression: Text; Values: Dictionary of [Text, Decimal]): Decimal`: Expressions
- `EvaluateStringExpression(Expression: Text; var Values: Dictionary of [Text, Text]): Text`
- `GetTokensFromStringExpression(Expression: Text; var TextTokens: List of [Text])`
- `GetTokensFromNumberExpression(Expression: Text; var TextTokens: List of [Text])`
- `GetOptionText(OptionString: Text; Index: Integer): Text[30]`
- `GetOptionTextList(OptionString: Text; var OptionList: List of [Text])`
- `GetFieldOptionString(TableNo: Integer; FieldNo: Integer): Text`
- `GetFieldOptionText(TableID: Integer; FieldID: Integer; Index: Integer): Text`
- `GetFieldOptionIndex(TableID: Integer; FieldID: Integer; OptionText: Text): Integer`
- `SetConstantValue(Datatype: Enum "Symbol Data Type"; TextValue: Text; OptionString: Text; var Value: Variant)`
- `CheckConstantDatatype(ConstantValue: Text; ExpectedType: Enum "Symbol Data Type"; OptionString: Text)`
- `IsPrimitiveDatatype(Datatype: Enum "Symbol Data Type"): Boolean`
- `ConvertLocalToXmlFormat(var Value: Text; Datatype: Enum "Symbol Data Type"): Text`
- `ConvertXmlToLocalFormat(Value: Text; Datatype: Enum "Symbol Data Type"): Text`
- `FormatAttributeValue(DataType: Option Option,Text,Integer,Decimal,Boolean,Date; var Value: Text[250])`

Plus 3 local procedures.

## 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 10 "Type Helper"](../codeunit/10.md) (13 calls: `CheckConstantDatatype → IsNumeric`, `ConvertText2Type → GetOptionNo`, `EvaluateDate → Evaluate`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (5 calls: `Text2BLOB → CreateOutStream`, `Text2BLOB → ToRecordRef`, `Variant2Text → CreateInStream`, …)
- [Codeunit 3007 "DotNet_String"](../codeunit/3007.md) (2 calls: `Trim → Set`, `Trim → Trim`)

## Called by

- [Codeunit 20134 "Script Symbol Store"](../codeunit/20134.md) (18 calls: `GetConstantOrLookupValueOfType → ConvertText2Type`, `GetTableFieldValue → Variant2Text`, `SetSymbolMemberValue → Variant2Boolean`, …)
- [Codeunit 20361 "Tax Json Deserialization"](../codeunit/20361.md) (17 calls: `ReadComponentFormulaExprToken → GetFieldOptionIndex`, `ReadConditionItemAttributes → GetFieldOptionIndex`, `ReadConvertCase → GetFieldOptionIndex`, …)
- [Codeunit 20131 "RecRef Handler"](../codeunit/20131.md) (10 calls: `GetConstantFilter → GetFieldDatatype`, `SetFieldValue → Variant2Boolean`, `SetFieldValue → Variant2Date`, …)
- [Codeunit 20142 "Lookup Mgmt."](../codeunit/20142.md) (9 calls: `ConvertLookupToConstant → ConvertLocalToXmlFormat`, `ConvertLookupToConstant → IsBoolean`, `ConvertLookupToConstant → IsDate`, …)
- [Table 20140 "Lookup Field Filter"](../table/20140.md) (5 calls: `ValidateDataType → GetFieldDatatype`, `ValidateValue → GetFieldDatatype`, `ValidateValue → GetFieldOptionString`, …)
- [Codeunit 20233 "Tax Setup Matrix Mgmt."](../codeunit/20233.md) (4 calls: `FillColumnValue → ConvertXmlToLocalFormat`, `UpdateTaxConfigurationValue → ConvertLocalToXmlFormat`, `UpdateTaxConfigurationValue → ConvertXmlToLocalFormat`, …)
- [Codeunit 20291 "Tax Rate Computation"](../codeunit/20291.md) (4 calls: `ExecuteComponentExpression → EvaluateExpression`, `GenerateTransactionRateID → Variant2Text`, `UpdatComponentPercentSymbols → Text2Number`, …)
- [Codeunit 20157 "Script Action Execution"](../codeunit/20157.md) (3 calls: `ExecuteAlertMessage → Variant2Text`, `ExecuteNumberExpression → EvaluateExpression`, `ExecuteStringExpression → EvaluateStringExpression`)
- [Page 20262 "Tax Component Formula Subform"](../page/20262.md) (3 calls: `ConstantOrLookupText → ConvertXmlToLocalFormat`, `ConvertLookupToConstant → ConvertLocalToXmlFormat`, `ConvertLookupToConstant → IsNumber`)
- [Codeunit 20143 "Lookup Serialization"](../codeunit/20143.md) (2 calls: `ConstantOrLookupText → ConvertXmlToLocalFormat`, `FieldFilterToString → GetFieldDatatype`)
- [Codeunit 20232 "Tax Type Object Helper"](../codeunit/20232.md) (2 calls: `GetFormulaValue → EvaluateExpression`, `OnEvaluateSymbolFormula → EvaluateExpression`)
- [Codeunit 20241 "Tax Rate Filter Mgmt."](../codeunit/20241.md) (2 calls: `ApplyFilterByColumnType → ConvertLocalToXmlFormat`, `ApplyFilterByColumnType → ConvertText2Type`)
- [Codeunit 20298 "Use Case Variables Mgmt."](../codeunit/20298.md) (2 calls: `GetTaxAttributeValue → ConvertText2Type`, `GetTaxAttributeValue → GetFieldOptionString`)
- [Page 20200 "Script Record Fields Subform"](../page/20200.md) (2 calls: `ChangeFieldSelection → GetFieldDatatype`, `SelectAll → GetFieldDatatype`)
- [Page 20240 "Tax Information Factbox"](../page/20240.md) (2 calls: `GetTaxAttributesInJson → ConvertXmlToLocalFormat`, `GetTaxComponentsInJson → ConvertXmlToLocalFormat`)
- [Table 20191 "Tax Test Condition Item"](../table/20191.md) (2 calls: `ValidateRHSValue → CheckConstantDatatype`, `ValidateRHSValue → GetLookupOptionString`)
- [Table 20233 "Record Attribute Mapping"](../table/20233.md) (2 calls: `GetAttributeValue → ConvertXmlToLocalFormat`, `ValidateAttributeValue → ConvertLocalToXmlFormat`)
- [Codeunit 20161 "Condition Mgmt."](../codeunit/20161.md) (1 call: `CheckCondition → GetLookupOptionString`)
- [Codeunit 20238 "Tax Rates Import Mgmt."](../codeunit/20238.md) (1 call: `UpdateRateColumnValue → ConvertLocalToXmlFormat`)
- [Codeunit 20346 "Tax Posting Helper"](../codeunit/20346.md) (1 call: `InsertRecordToString → GetFieldDatatype`)
- [Page 20140 "Lookup Field Filter Dialog"](../page/20140.md) (1 call: `FormatLine → GetFieldDatatype`)
- [Page 20253 "Tax Rate Filters"](../page/20253.md) (1 call: `ValidateValue → ConvertLocalToXmlFormat`)
- [Page 20335 "Tax Insert Record Subform"](../page/20335.md) (1 call: `FormatLine → GetFieldDatatype`)
- [Table 20173 "Action Loop N Times"](../table/20173.md) (1 call: `ValidateValue → CheckConstantDatatype`)
- [Table 20179 "Action Number Expression"](../table/20179.md) (1 call: `ValidateExpression → GetTokensFromNumberExpression`)
- [Table 20184 "Action String Expression"](../table/20184.md) (1 call: `ValidateExpression → GetTokensFromStringExpression`)
- [Table 20241 "Tax Attribute"](../table/20241.md) (1 call: `FillAttributeValues → GetOptionTextList`)
- [Table 20247 "Tax Component Formula"](../table/20247.md) (1 call: `ValidateExpression → GetTokensFromNumberExpression`)
- [Table 20285 "Tax Component Expression"](../table/20285.md) (1 call: `ValidateExpression → GetTokensFromNumberExpression`)

## 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: "Script Data Type Mgmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
