---
title: "Table 225 Post Code"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/225-post-code/
type: table
id: 225
name: "Post Code"
app: "Base Application"
namespace: Microsoft.Foundation.Address
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/225-post-code/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 225 Post Code

Jonas Paprotka, https://jonas-paprotka.de/ref/table/225-post-code/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Foundation.Address |
| Versions | 17-28 |
| Source file | Foundation/Address/PostCode.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Code | Code[20] | 17-28 | - | - |
| 2 | City | Text[30] | 17-28 | - | - |
| 3 | Search City | Code[30] | 17-28 | - | - |
| 4 | Country/Region Code | Code[10] | 17-28 | - | - |
| 5 | County | Text[30] | 17-28 | - | - |
| 30 | Time Zone | Text[180] | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Code, City | 17-28 |
| Key2 | City, Code | 17-28 |
| Key3 | Search City | 17-28 |
| Key4 | Country/Region Code | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ValidateCity | (var Text[30], var Code[20], var Text[30], var Code[10], Boolean) | - | public | 17-28 | - | - |
| ValidatePostCode | (var Text[30], var Code[20], var Text[30], var Code[10], Boolean) | - | public | 17-28 | - | - |
| UpdateFromSalesHeader | (Record Sales Header, Boolean) | - | public | 17-28 | - | - |
| UpdateFromCustomer | (Record Customer, Boolean) | - | public | 17-28 | - | - |
| UpdateFromCompanyInformation | (Record Company Information, Boolean) | - | public | 17-28 | - | - |
| UpdateFromStandardAddress | (Record Standard Address, Boolean) | - | public | 17-28 | - | - |
| ValidateCountryCode | (var Text[30], var Code[20], var Text[30], var Code[10]) | - | public | 17-28 | - | - |
| CheckClearPostCodeCityCounty | (var Text, var Code[20], var Text, var Code[10], Code[10]) | - | public | 17-28 | - | - |
| LookupPostCode | (var Text, var Code[20], var Text, var Code[10]) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCheckClearPostCodeCityCounty | (var Text, var Code[20], var Text, var Code[10], Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeLookupPostCode | (var Text, var Code[20], var Text, var Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeValidateCity | (var Text[30], var Code[20], var Text[30], var Code[10], Boolean, var Boolean) | 17-23 | Pending 21.0 | Replaced by OnBeforeValidateCityProcedure |
| Integration event | OnBeforeValidateCountryCode | (var Text[30], var Code[20], var Text[30], var Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeValidatePostCode | (var Text[30], var Code[20], var Text[30], var Code[10], Boolean, var Boolean) | 17-18 | - | - |
| Integration event | OnValidatePostCodeOnAfterSetFilters | (var Record Post Code) | 17-28 | - | - |
| Integration event | OnAfterValidateCity | (var Record Post Code, var Text[30], var Code[20], var Text[30], var Code[10], Boolean) | 18-28 | - | - |
| Integration event | OnAfterValidatePostCode | (var Record Post Code, var Text[30], var Code[20], var Text[30], var Code[10], Boolean) | 18-28 | - | - |
| Integration event | OnBeforeValidatePostCode | (var Text[30], var Code[20], var Text[30], var Code[10], var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeValidateCityProcedure | (var Text[30], var Code[20], var Text[30], var Code[10], Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeValidateCityField | (var Record Post Code, Record Post Code, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeValidateCode | (var Record Post Code, Record Post Code, var Boolean) | 21-28 | - | - |
| Integration event | OnValidateCityOnAfterSelectPostCode | (var Record Post Code, var Text[30], var Code[20], var Text[30], var Code[10], Boolean) | 22-28 | - | - |
| Integration event | OnValidatePostCodeOnAfterSelectPostCode | (var Record Post Code, var Text[30], var Code[20], var Text[30], var Code[10], Boolean) | 22-28 | - | - |
| Integration event | OnLookupPostCodeOnAfterSelectPostCode | (var Record Post Code) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
