---
id: object/table/226
type: object
title: Table 226 "VAT Reg. No. Srv. Template"
summary: Table 226 "VAT Reg. No. Srv. Template" in Base Application (Microsoft.Finance.VAT.Registration). 9 fields, 2 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC26.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "26"
  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: 8c7b9cac1942d8b2b1b22f7fcb6e7442e91bdd624a3fad3895bc902f97b884af
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/VAT/Registration/VATRegNoSrvTemplate.Table.al
    title: src/Layers/W1/BaseApp/Finance/VAT/Registration/VATRegNoSrvTemplate.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: 226
name: VAT Reg. No. Srv. Template
caption: VAT Reg. No. Validation Template
namespace: Microsoft.Finance.VAT.Registration
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 9
  procedures: 5
  events: 1
  subscribers: 0
relations:
  out: 2
  referenced_by: 2
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 226 "VAT Reg. No. Srv. Template"

> Table 226 "VAT Reg. No. Srv. Template" in Base Application (Microsoft.Finance.VAT.Registration). 9 fields, 2 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC26.

Base Application · Microsoft.Finance.VAT.Registration · captioned "VAT Reg. No. Validation Template" · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/VAT/Registration/VATRegNoSrvTemplate.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | VAT Reg. No. Validation Template |
| DataClassification | CustomerContent |
| LookupPageId | VAT Reg. No. Srv. Templates |

## 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 | Code | Code[20] | Specifies the template code. |  |
| 10 | Country/Region Code | Code[10] | Specifies the country/region code. | TableRelation [Table 9 "Country/Region"](../table/9.md) ("Country/Region".Code) |
| 11 | Account Type | Enum "VAT Reg. No. Srv. Template Account Type" | Specifies the account type. | enum [Enum 241 "VAT Reg. No. Srv. Template Account Type"](../enum/241.md) |
| 12 | Account No. | Code[20] | Specifies the account number. |  |
| 20 | Validate Name | Boolean | Specifies if the name value is validated. |  |
| 21 | Validate Street | Boolean | Specifies if the street value is validated. |  |
| 22 | Validate City | Boolean | Specifies if the city value is validated. |  |
| 23 | Validate Post Code | Boolean | Specifies if the post code value is validated. |  |
| 24 | Ignore Details | Boolean | Specifies if you want to exclude any detailed information that the validation service returns. Choose the field to view all validation details. |  |

## Keys

- PK: Code (clustered)

## Events published

- `OnBeforeFindTemplate(VATRegistrationLog: Record "VAT Registration Log"; var IsHandled: Boolean; var Result: Code[20]; var VATRegNoSrvTemplate: Record "VAT Reg. No. Srv. Template")` (integration): Integration event raised before finding validation template to allow custom template selection logic.

## Procedures

- `FindTemplate(VATRegistrationLog: Record "VAT Registration Log"): Code[20]`: Finds the most appropriate validation template for the given VAT registration log entry. Uses hierarchical matching based on country, account type, and account number.
- `CheckInitDefaultTemplate(var VATRegNoSrvConfig: Record "VAT Reg. No. Srv Config")`: Initializes default validation template if none exists and updates service configuration.

Plus 2 local procedures.

## Relations

- lookup page [Page 246 "VAT Reg. No. Srv. Templates"](../page/246.md)
- Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)

## Referenced by

2 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 248 "VAT Reg. No. Srv Config"](../table/248.md): Default Template Code
- [Table 249 "VAT Registration Log"](../table/249.md): Template

## Pages and codeunits on this table

- [Page 246 "VAT Reg. No. Srv. Templates"](../page/246.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26

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: "VAT Reg. No. Srv. Template")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
