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

# Table 5209 "Union"

> Table 5209 "Union" in Base Application (Microsoft.HumanResources.Setup). 14 fields, 2 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Union |
| 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 | Code | Code[10] | Specifies a union code. | NotBlank |
| 2 | Name | Text[100] | Specifies the name of the union. |  |
| 3 | Address | Text[100] | Specifies the union's address. |  |
| 4 | Post Code | Code[20] | Specifies the postal code. | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Country/Region Code" = const('')) "Post Code" else if ("Country/Region Code" = filter(<> '')) "Post Code" where("Country/Region Code" = field("Country/Region Code"))) |
| 5 | City | Text[30] | Specifies the city of the address. | TableRelation [Table 225 "Post Code"](../table/225.md) (if ("Country/Region Code" = const('')) "Post Code".City else if ("Country/Region Code" = filter(<> '')) "Post Code".City where("Country/Region Code" = field("Country/Region Code"))) |
| 6 | Phone No. | Text[30] | Specifies the union's telephone number. |  |
| 7 | No. of Members Employed | Integer | Specifies the number of members employed. | FlowField: count(Employee where(Status = filter(<> Terminated), "Union Code" = field(Code))); not editable |
| 8 | Name 2 | Text[50] | — |  |
| 9 | Address 2 | Text[50] | — |  |
| 10 | County | Text[30] | — |  |
| 11 | Fax No. | Text[30] | — |  |
| 12 | E-Mail | Text[80] | Email <small>caption</small> |  |
| 13 | Home Page | Text[255] | — |  |
| 14 | Country/Region Code | Code[10] | — | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |

## Keys

- Key1: Code (clustered)

## Events published

- `OnBeforeValidateCity(var Union: Record Union; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeValidatePostCode(var Union: Record Union; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)` (integration)

## Relations

- drill-down page [Page 5213 "Unions"](../page/5213.md)
- lookup page [Page 5213 "Unions"](../page/5213.md)
- City: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- Post Code: TableRelation [Table 225 "Post Code"](../table/225.md) (conditional)
- No. of Members Employed: CalcFormula [Table 5200 "Employee"](../table/5200.md)
- 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 5200 "Employee"](../table/5200.md): Union Code

## Pages and codeunits on this table

- [Page 5213 "Unions"](../page/5213.md) (source table)

## Across versions

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

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: "Union")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
