---
id: object/codeunit/5164
type: object
title: Codeunit 5164 "Create Employee"
summary: Codeunit 5164 "Create Employee" in ContosoCoffeeDemoDataset (Microsoft.DemoData.HumanResources). 9 public procedures. 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: 7956f8920f921d430d67f3260129ebbda811befd0b7b036689c389f9b858e7ff
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/HumanResources/2.%20MasterData/CreateEmployee.Codeunit.al
    title: src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/HumanResources/2. MasterData/CreateEmployee.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: 5164
name: Create Employee
namespace: Microsoft.DemoData.HumanResources
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: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 7
  implements: 0
---

# Codeunit 5164 "Create Employee"

> Codeunit 5164 "Create Employee" in ContosoCoffeeDemoDataset (Microsoft.DemoData.HumanResources). 9 public procedures. Introduced in BC29, still in BC30.

ContosoCoffeeDemoDataset · Microsoft.DemoData.HumanResources · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/HumanResources/2.%20MasterData/CreateEmployee.Codeunit.al) · facts from BC29

## Procedures

- `UpdateEmployeesDetails()`
- `UpdateEmployeeManagers()`
- `InventoryManager(): Code[20]`
- `ManagingDirector(): Code[20]`
- `Designer(): Code[20]`
- `SalesManager(): Code[20]`
- `ProductionAssistant(): Code[20]`
- `ProductionManager(): Code[20]`
- `Secretary(): Code[20]`

Plus 1 local procedures.

## Triggers

OnRun

## 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 5172 "Employee Media"](../codeunit/5172.md) (7 calls: `CreateEmployee → GetDesignerPicture`, `CreateEmployee → GetInventoryManagerPicture`, `CreateEmployee → GetManagingDirectorPicture`, …)
- [Codeunit 5119 "Create Employee Stat. Group"](../codeunit/5119.md) (3 calls: `CreateEmployee → Days14`, `CreateEmployee → Hourly`, `CreateEmployee → Monthly`)
- [Codeunit 5171 "Contoso Human Resources"](../codeunit/5171.md) (3 calls: `CreateEmployee → InsertEmployee`, `UpdateEmployeeManagers → UpdateEmployeeManager`, `UpdateEmployeesDetails → UpdateEmployeeDetails`)
- [Codeunit 5174 "Create Union"](../codeunit/5174.md) (3 calls: `CreateEmployee → AdministratorUnion`, `CreateEmployee → DevelopmentEngineerUnion`, `CreateEmployee → ProductionWorkerUnion`)
- [Codeunit 5175 "Create Employment Contract"](../codeunit/5175.md) (3 calls: `CreateEmployee → Administrators`, `CreateEmployee → Developers`, `CreateEmployee → ProductionStaff`)

## Called by

- [Codeunit 5165 "Create Employee Qualification"](../codeunit/5165.md) (7 calls: `OnRun → Designer`, `OnRun → InventoryManager`, `OnRun → ManagingDirector`, …)
- [Codeunit 5176 "Create Employee Absence"](../codeunit/5176.md) (7 calls: `OnRun → Designer`, `OnRun → InventoryManager`, `OnRun → ManagingDirector`, …)
- [Codeunit 5184 "Create Misc. Article Info."](../codeunit/5184.md) (7 calls: `OnRun → Designer`, `OnRun → InventoryManager`, `OnRun → ManagingDirector`, …)
- [Codeunit 5185 "Create Confidential Info."](../codeunit/5185.md) (7 calls: `OnRun → Designer`, `OnRun → InventoryManager`, `OnRun → ManagingDirector`, …)
- [Codeunit 5166 "Create Employee Relative"](../codeunit/5166.md) (5 calls: `OnRun → Designer`, `OnRun → ManagingDirector`, `OnRun → ProductionManager`, …)
- [Codeunit 5294 "Create CRM Dimension Value"](../codeunit/5294.md) (2 calls: `CreateDimensionValue → InventoryManager`, `CreateDimensionValue → ProductionAssistant`)
- [Codeunit 5168 "Human Resources Module"](../codeunit/5168.md) (1 call: `CreateMasterData → (object)`)

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