---
id: object/codeunit/5171
type: object
title: Codeunit 5171 "Contoso Human Resources"
summary: Codeunit 5171 "Contoso Human Resources" in ContosoCoffeeDemoDataset (Microsoft.DemoTool.Helpers). 22 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: d21ae6d5c4c82aab49b11f0905067704dc9a642c1e1f451333d8c1f049276d67
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso%20Helpers/ContosoHumanResources.Codeunit.al
    title: src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso Helpers/ContosoHumanResources.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: 5171
name: Contoso Human Resources
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: 25
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 19
  implements: 0
---

# Codeunit 5171 "Contoso Human Resources"

> Codeunit 5171 "Contoso Human Resources" in ContosoCoffeeDemoDataset (Microsoft.DemoTool.Helpers). 22 public procedures. 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/ContosoHumanResources.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata Confidential = rim, tabledata "Misc. Article" = rim, tabledata "Employment Contract" = rim, tabledata "Grounds for Termination" = rim, tabledata "Cause of Inactivity" = rim, tabledata Union = rim, tabledata Relative = rim, tabledata "Employee Absence" = rim, tabledata "Employee Templ." = r... |

## Procedures

- `SetOverwriteData(Overwrite: Boolean)`
- `InsertConfidential(Code: Code[10]; Description: Text[100])`
- `InsertMiscellaneousArticle(Code: Code[10]; Description: Text[100])`
- `InsertEmploymentContract(Code: Code[10]; Description: Text[100])`
- `InsertGroundsForTermination(Code: Code[10]; Description: Text[100])`
- `InsertCauseOfInactivity(Code: Code[10]; Description: Text[100])`
- `InsertUnion(Code: Code[10]; Name: Text[100])`
- `InsertRelative(RelativeCode: Code[10]; Description: Text[100])`
- `InsertEmployeeAbsence(EmployeeNo: Code[20]; FromDate: Date; ToDate: Date; CauseOfAbsenceCode: Code[10]; Quantity: Decimal; UnitOfMeasureCode: Code[10])`
- `InsertEmployeeTemplate(Code: Code[20]; Description: Text[100]; Gender: Enum "Employee Gender"; EmployeePostingGroupCode: Code[20])`
- `InsertEmployee(No: Code[20]; FirstName: Text[30]; LastName: Text[30]; Title: Text[30]; PostingGroupCode: Code[20]; EmploymentContractCode: Code[10]; StatisticsGroupCode: Code[10]; UnionCode: Code[10]; Sex: Enum "Employee Gender"; Picture: Codeunit "Temp Blob")`
- `InsertCauseOfAbsence(Code: Code[10]; Description: Text[100]; UnitOfMeasureCode: Code[10])`
- `InsertHumanResourcesUom(Code: Code[10]; QtyParam: Decimal)`
- `UpdateEmployeeDetails(No: Code[20]; BirthDate: Date; EmploymentDate: Date; Address: Text[100]; PostCode: Code[20]; InternalPhoneNo: Text[30]; MobilePhoneNo: Text[30]; PhoneNo: Text[30]; Email: Text[80]; SocialSecurityNo: Text[30]; UnitNo: Text[30])`
- `UpdateEmployeeManager(EmployeeNo: Code[20]; ManagerNo: Code[20])`
- `InsertEmployeePostingGroup(PostingGroupCode: Code[20]; PayableAccount: Code[20])`
- `InsertEmployeeQualification(EmployeeNo: Code[20]; QualificationCode: Code[10]; FromDate: Date; ToDate: Date; Type: Option; InstitutionCompany: Text[30])`
- `InsertEmployeeRelative(EmployeeNo: Code[20]; RelativeCode: Code[10]; FirstName: Text[30]; BirthDate: Date; Age: Integer)`
- `InsertEmployeeStatisticsGroup(Code: Code[10]; Description: Text[100])`
- `InsertQualification(Code: Code[10]; Description: Text[100])`
- `InsertMiscArticleInformation(EmployeeNo: Code[20]; MiscArticleCode: Text[100])`
- `InsertConfidentialInformation(EmployeeNo: Code[20]; ConfidentialCode: Code[10])`

Plus 3 local procedures.

## 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 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `InsertEmployee → CreateInStream`, `InsertEmployee → HasValue`)

## Called by

- [Codeunit 5164 "Create Employee"](../codeunit/5164.md) (3 calls: `CreateEmployee → InsertEmployee`, `UpdateEmployeeManagers → UpdateEmployeeManager`, `UpdateEmployeesDetails → UpdateEmployeeDetails`)
- [Codeunit 5119 "Create Employee Stat. Group"](../codeunit/5119.md) (1 call: `OnRun → InsertEmployeeStatisticsGroup`)
- [Codeunit 5157 "Create Cause Of Inactivity"](../codeunit/5157.md) (1 call: `OnRun → InsertCauseOfInactivity`)
- [Codeunit 5158 "Create Causes of Absence"](../codeunit/5158.md) (1 call: `OnRun → InsertCauseOfAbsence`)
- [Codeunit 5159 "Create Misc. Article"](../codeunit/5159.md) (1 call: `OnRun → InsertMiscellaneousArticle`)
- [Codeunit 5160 "Create Employee Posting Group"](../codeunit/5160.md) (1 call: `OnRun → InsertEmployeePostingGroup`)
- [Codeunit 5162 "Create Human Resources UoM"](../codeunit/5162.md) (1 call: `OnRun → InsertHumanResourcesUom`)
- [Codeunit 5163 "Create Relatives"](../codeunit/5163.md) (1 call: `OnRun → InsertRelative`)
- [Codeunit 5165 "Create Employee Qualification"](../codeunit/5165.md) (1 call: `OnRun → InsertEmployeeQualification`)
- [Codeunit 5166 "Create Employee Relative"](../codeunit/5166.md) (1 call: `OnRun → InsertEmployeeRelative`)
- [Codeunit 5167 "Create Employee Template"](../codeunit/5167.md) (1 call: `OnRun → InsertEmployeeTemplate`)
- [Codeunit 5169 "Create Grounds for Termination"](../codeunit/5169.md) (1 call: `OnRun → InsertGroundsForTermination`)
- [Codeunit 5174 "Create Union"](../codeunit/5174.md) (1 call: `OnRun → InsertUnion`)
- [Codeunit 5175 "Create Employment Contract"](../codeunit/5175.md) (1 call: `OnRun → InsertEmploymentContract`)
- [Codeunit 5176 "Create Employee Absence"](../codeunit/5176.md) (1 call: `OnRun → InsertEmployeeAbsence`)
- [Codeunit 5178 "Create Confidential"](../codeunit/5178.md) (1 call: `OnRun → InsertConfidential`)
- [Codeunit 5179 "Create Qualification"](../codeunit/5179.md) (1 call: `OnRun → InsertQualification`)
- [Codeunit 5184 "Create Misc. Article Info."](../codeunit/5184.md) (1 call: `OnRun → InsertMiscArticleInformation`)
- [Codeunit 5185 "Create Confidential Info."](../codeunit/5185.md) (1 call: `OnRun → InsertConfidentialInformation`)

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