---
id: object/codeunit/5133
type: object
title: Codeunit 5133 "Contoso GL Account"
summary: Codeunit 5133 "Contoso GL Account" in ContosoCoffeeDemoDataset (Microsoft.DemoTool.Helpers). 8 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - contosocoffeedemodataset
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: 1901aa7c6145b7cf0bc31ac9c18bf0760b26c22c70e6709d3b45a8580e58ec31
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso%20Helpers/ContosoGLAccount.Codeunit.al
    title: src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso Helpers/ContosoGLAccount.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: 5133
name: Contoso GL Account
namespace: Microsoft.DemoTool.Helpers
app: ContosoCoffeeDemoDataset
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: 10
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 8
  implements: 0
---

# Codeunit 5133 "Contoso GL Account"

> Codeunit 5133 "Contoso GL Account" in ContosoCoffeeDemoDataset (Microsoft.DemoTool.Helpers). 8 public procedures, 1 events. Introduced in BC29, still in BC30.

ContosoCoffeeDemoDataset · Microsoft.DemoTool.Helpers · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso%20Helpers/ContosoGLAccount.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |
| Permissions | tabledata "G/L Account" = rim |

## Events published

- `OnBeforeValidateGLAccountCategory(var GLAccount: Record "G/L Account"; var Category: Enum "G/L Account Category"; var SubCategory: Text[80])` (integration)

## Procedures

- `SetOverwriteData(Overwrite: Boolean)`
- `AddAccountForLocalization(AccountName: Text[100]; AccountNo: Code[20])`
- `GetAccountNo(AccountName: Text[100]): Code[20]`
- `InsertGLAccount(AccountNo: Code[20]; Name: Text[100]; IncomeOrBalance: Enum "G/L Account Income/Balance"; AccountCategory: Enum "G/L Account Category"; AccountType: Enum "G/L Account Type"; GenBusPostingGroup: Code[20]; GenProdPostingGroup: Code[20]; TaxGroup: Code[20])`
- `InsertGLAccount(AccountNo: Code[20]; Name: Text[100]; IncomeOrBalance: Enum "G/L Account Income/Balance"; AccountCategory: Enum "G/L Account Category"; AccountType: Enum "G/L Account Type")`
- `InsertGLAccount(AccountNo: Code[20]; Name: Text[100]; IncomeOrBalance: Enum "G/L Account Income/Balance"; AccountCategory: Enum "G/L Account Category"; AccountType: Enum "G/L Account Type"; GenBusPostingGroup: Code[20]; GenProdPostingGroup: Code[20]; NoOfBlankLines: Integer; Totaling: Text[250]; GenPostingType: Enum "General Posting Type"; VATGenPostingGroup: Code[20]; VATProdPostingGroup: Code[20]; DirectPosting: Boolean; ReconciliationAccount: Boolean; NewPage: Boolean)`
- `InsertGLAccount(AccountNo: Code[20]; Name: Text[100]; IncomeOrBalance: Enum "G/L Account Income/Balance"; AccountCategory: Enum "G/L Account Category"; AccountSubCategory: Text[80]; AccountType: Enum "G/L Account Type"; GenBusPostingGroup: Code[20]; GenProdPostingGroup: Code[20]; NoOfBlankLines: Integer; Totaling: Text[250]; GenPostingType: Enum "General Posting Type"; VATGenPostingGroup: Code[20]; VATProdPostingGroup: Code[20]; DirectPosting: Boolean; ReconciliationAccount: Boolean; NewPage: Boolean)`
- `InsertGLAccount(AccountNo: Code[20]; Name: Text[100]; IncomeOrBalance: Enum "G/L Account Income/Balance"; AccountCategory: Enum "G/L Account Category"; AccountSubCategory: Text[80]; AccountType: Enum "G/L Account Type"; GenBusPostingGroup: Code[20]; GenProdPostingGroup: Code[20]; TaxGroup: Code[20]; NoOfBlankLines: Integer; Totaling: Text[250]; GenPostingType: Enum "General Posting Type"; VATGenPostingGroup: Code[20]; VATProdPostingGroup: Code[20]; DirectPosting: Boolean; ReconciliationAccount: Boolean; NewPage: Boolean)`

Plus 1 local procedures.

## Called by

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 5208 "Create G/L Account"](../codeunit/5208.md) (269 calls: `AccountsPayable → GetAccountNo`, `AccountsPayableTotal → GetAccountNo`, `AccountsReceivable → GetAccountNo`, …)
- [Codeunit 5135 "Create Common GL Account"](../codeunit/5135.md) (20 calls: `AddGLAccountsForLocalization → AddAccountForLocalization`, `CustomerDomestic → GetAccountNo`, `DirectCostAppliedRawMat → GetAccountNo`, …)
- [Codeunit 4762 "Create Mfg GL Account"](../codeunit/4762.md) (13 calls: `AddGLAccountsForLocalization → AddAccountForLocalization`, `CapacityVariance → GetAccountNo`, `CapOverheadVariance → GetAccountNo`, …)
- [Codeunit 4773 "Create FA GL Account"](../codeunit/4773.md) (8 calls: `AccumDepreciationBuildings → GetAccountNo`, `AddGLAccountsForLocalization → AddAccountForLocalization`, `DecreasesDuringTheYear → GetAccountNo`, …)
- [Codeunit 5199 "Create Job GL Account"](../codeunit/5199.md) (8 calls: `AddGLAccountsForLocalization → AddAccountForLocalization`, `JobCostsApplied → GetAccountNo`, `JobSalesApplied → GetAccountNo`, …)
- [Codeunit 5102 "Create Svc GL Account"](../codeunit/5102.md) (3 calls: `AddGLAccountsForLocalization → AddAccountForLocalization`, `OnRun → InsertGLAccount`, `ServiceContractSale → GetAccountNo`)
- [Codeunit 5161 "Create HR GL Account"](../codeunit/5161.md) (3 calls: `AddGLAccountsForLocalization → AddAccountForLocalization`, `EmployeesPayable → GetAccountNo`, `OnRun → InsertGLAccount`)
- [Codeunit 5362 "Create Sust. G/L Account"](../codeunit/5362.md) (3 calls: `AddGLAccountsForLocalization → AddAccountForLocalization`, `OnRun → InsertGLAccount`, `UtilitiesExpensePowerPlantAccount → GetAccountNo`)

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