---
id: object/table/249
type: object
title: Table 249 "VAT Registration Log"
summary: Table 249 "VAT Registration Log" in Base Application (Microsoft.Finance.VAT.Registration). 16 fields, 11 public procedures, 5 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: 7158f764f5e05dda042b442fb100b41e073116902908a23599aa275d20dfa19f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/VAT/Registration/VATRegistrationLog.Table.al
    title: src/Layers/W1/BaseApp/Finance/VAT/Registration/VATRegistrationLog.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-how-validate-vat-registration-number
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/working-with-value-added-tax-vat
    - topic/business-central/business-functionality/set-up-business-central/set-up-finance
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 249
name: VAT Registration Log
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: 16
  procedures: 21
  events: 5
  subscribers: 0
relations:
  out: 4
  referenced_by: 1
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 0
  implements: 0
---

# Table 249 "VAT Registration Log"

> Table 249 "VAT Registration Log" in Base Application (Microsoft.Finance.VAT.Registration). 16 fields, 11 public procedures, 5 events. Present since at least BC23, still in BC30, changed in BC24, BC26.

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

Learn documents this table through its pages: [Page 249 "VAT Registration Log"](../page/249.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | VAT Registration Log |
| DataClassification | CustomerContent |

## 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 | Entry No. | Integer | Specifies the number of the entry, as assigned from the specified number series when the entry was created. | AutoIncrement |
| 2 | VAT Registration No. | Text[20] | Specifies the VAT registration number that you entered in the VAT Registration No. field on a customer, vendor, or contact card. | NotBlank |
| 3 | Account Type | Enum "VAT Registration Log Account Type" | Specifies the account type of the customer or vendor whose VAT registration number is verified. | enum [Enum 240 "VAT Registration Log Account Type"](../enum/240.md) |
| 4 | Account No. | Code[20] | Specifies the account number of the customer or vendor whose VAT registration number is verified. | TableRelation [Table 18 "Customer"](../table/18.md), [Table 23 "Vendor"](../table/23.md) (if ("Account Type" = const(Customer)) Customer else if ("Account Type" = const(Vendor)) Vendor) |
| 5 | Country/Region Code | Code[10] | Specifies the country/region of the address. | TableRelation [Table 9 "Country/Region"](../table/9.md) ("Country/Region".Code); NotBlank |
| 6 | User ID | Code[50] | Specifies the ID of the user who posted the entry, to be used, for example, in the change log. | TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 10 | Status | Option | Specifies the status of the verification action. | OptionCaption: Not Verified,Valid,Invalid |
| 11 | Verified Name | Text[150] | Specifies the name of the customer, vendor, or contact whose VAT registration number was verified. |  |
| 12 | Verified Address | Text[150] | Specifies the address of the customer, vendor, or contact whose VAT registration number was verified. |  |
| 13 | Verified Date | DateTime | Specifies when the VAT registration number was verified. |  |
| 14 | Request Identifier | Text[200] | Specifies the request identifier of the VAT registration number validation service. |  |
| 15 | Verified Street | Text[50] | Specifies the street of the customer, vendor, or contact whose VAT registration number was verified. |  |
| 16 | Verified Postcode | Text[20] | Specifies the postcode of the customer, vendor, or contact whose VAT registration number was verified. |  |
| 17 | Verified City | Text[30] | Specifies the city of the customer, vendor, or contact whose VAT registration number was verified. |  |
| 18 | Details Status | Enum "VAT Reg. Log Details Status" | Specifies the status of the details validation. | enum [Enum 242 "VAT Reg. Log Details Status"](../enum/242.md) |
| 19 | Template | Code[20] | — | TableRelation [Table 226 "VAT Reg. No. Srv. Template"](../table/226.md) (VAT Reg. No. Srv. Template) |

## Keys

- Key1: Entry No. (clustered)

## Events published

- `OnBeforeValidateField(var RecordRef: RecordRef; FieldName: Text; var Value: Text; var IsHandled: Boolean)` (integration): Integration event raised before validating a field value during detail updates.
- `OnBeforeShowDetailsUpdatedMessage(TableId: Integer; var IsHandled: Boolean)` (integration): Integration event raised before showing the details updated message to allow custom messaging.
- `OnBeforeOpenModifyDetails(var VATRegistrationLog: Record "VAT Registration Log"; var IsHandled: Boolean)` (integration): Integration event raised before opening the modify details interface to allow custom handling.
- `OnAfterInitVATRegLog(var VATRegistrationLog: Record "VAT Registration Log"; CountryCode: Code[10]; AcountType: Option; AccountNo: Code[20]; VATRegNo: Text[20])` (integration): Integration event raised after initializing a VAT registration log entry to allow custom field population.
- `OnBeforeGetAccountRecordRef(var VATRegistrationLog: Record "VAT Registration Log"; var RecordRef: RecordRef; var IsHandled: Boolean; var Result: Boolean)` (integration): Integration event raised before retrieving the account record reference to allow custom record retrieval logic.

## Procedures

- `GetCountryCode(): Code[10]`: Retrieves the country/region code for VAT validation, using EU country code when available.
- `GetVATRegNo(): Code[20]`: Normalizes and retrieves the VAT registration number by removing country prefix and non-alphanumeric characters.
- `InitVATRegLog(var VATRegistrationLog: Record "VAT Registration Log"; CountryCode: Code[10]; AcountType: Option; AccountNo: Code[20]; VATRegNo: Text[20])`: Initializes a new VAT registration log entry with specified account details and validation parameters.
- `OpenModifyDetails()`: Opens the VAT registration details modification interface and applies accepted changes to the source record. Handles updates for Customer, Vendor, and Contact records with appropriate integration updates.
- `OpenDetailsForRecRef(var RecordRef: RecordRef): Boolean`: Opens VAT registration log details page for the specified record and applies accepted validation changes.
- `GetAccountRecordRef(var RecordRef: RecordRef): Boolean`: Retrieves the record reference for the account associated with this VAT registration log entry.
- `SetAccountDetails(Name: Text; Street: Text; City: Text; PostCode: Text)`: Sets account details from the current system record for comparison during validation.
- `SetResponseDetails(Name: Text; Address: Text; Street: Text; City: Text; PostCode: Text)`: Sets response details received from the VAT registration validation service for comparison and storage.
- `SetResponseMatchDetails(Name: Boolean; Street: Boolean; City: Boolean; PostCode: Boolean)`: Sets the match results for individual field comparisons between system values and validation service responses.
- `LogDetails(): Boolean`: Creates detailed log entries for field-by-field validation results and calculates overall validation status.
- `CheckGetTemplate(var VATRegNoSrvTemplateLcl: Record "VAT Reg. No. Srv. Template")`: Retrieves the appropriate VAT registration service template for validation operations.

Plus 5 local procedures.

## Relations

- Account No.: TableRelation [Table 18 "Customer"](../table/18.md) (conditional)
- Template: TableRelation [Table 226 "VAT Reg. No. Srv. Template"](../table/226.md)
- Account No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)

## Referenced by

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

- [Table 227 "VAT Registration Log Details"](../table/227.md): Log Entry No.

## Pages and codeunits on this table

- [Page 249 "VAT Registration Log"](../page/249.md) (source table)
- [Codeunit 248 "VAT Lookup Ext. Data Hndl"](../codeunit/248.md) (codeunit runs on it)

## 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 5055 "CustVendBank-Update"](../codeunit/5055.md) (1 call: `OpenModifyDetails → (object)`)
- [Codeunit 5056 "CustCont-Update"](../codeunit/5056.md) (1 call: `OpenModifyDetails → OnModify`)
- [Codeunit 5057 "VendCont-Update"](../codeunit/5057.md) (1 call: `OpenModifyDetails → OnModify`)
- [Codeunit 701 "Data Type Management"](../codeunit/701.md) (1 call: `ValidateField → FindFieldByName`)
- [Codeunit 8617 "Config. Validate Management"](../codeunit/8617.md) (1 call: `ValidateField → EvaluateValueWithValidate`)
- [Page 247 "VAT Registration Log Details"](../page/247.md) (1 call: `OpenDetailsForRecRef → (object)`)

## 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). 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: "table", object_name: "VAT Registration Log")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
