---
id: object/codeunit/4167
type: object
title: Codeunit 4167 "Business Skill Port"
summary: Codeunit 4167 "Business Skill Port" in System Application (System.AI.BusinessSkills). 7 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-05T00:55:56.315Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9450c0d06043553e7683adfd762039c00465297daa314ad24b743cd9af470a4e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/System%20Application/App/Business%20Skills/src/ImportExport/BusinessSkillPort.Codeunit.al
    title: src/System Application/App/Business Skills/src/ImportExport/BusinessSkillPort.Codeunit.al (main)
    date: null
    commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/14695
    - change/bcapps/14372
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-new-module
      title: Create a new module in the System Application
      label: possibly related
      why: System Application module creation and structure for Business Skill Port functionality
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-blueprint
      title: Module Architecture in the System Application
      label: possibly related
      why: Module architecture design for the Business Skill Port codeunit in System Application
      by: model
object_type: codeunit
object_id: 4167
name: Business Skill Port
namespace: System.AI.BusinessSkills
app: System Application
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 11
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Codeunit 4167 "Business Skill Port"

> Codeunit 4167 "Business Skill Port" in System Application (System.AI.BusinessSkills). 7 public procedures. Introduced in BC30.

System Application · System.AI.BusinessSkills · BC30 · [source at f53bb0f1](https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/System%20Application/App/Business%20Skills/src/ImportExport/BusinessSkillPort.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `ExportSkills(var Skill: Record "Business Skill")`
- `BuildExportXml(var Skill: Record "Business Skill"): SecretText`
- `ImportSkills()`
- `ImportFromXml(XmlText: SecretText): Text`
- `ImportFromStream(var InStr: InStream): Text`
- `ImportSkillElement(var SourceSkill: Record "Business Skill"; SkillContent: SecretText)` (internal)
- `ValidateSkillReference(Reference: BigInteger)` (internal)

Plus 4 local procedures.

## Calls

From the extracted call graph of BC30 (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 4163 "Business Skill Impl."](../codeunit/4163.md) (7 calls: `DownloadBlob → GetEncoding`, `ImportFromXml → GetEncoding`, `ImportFromXml → WriteText`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (5 calls: `DownloadBlob → CreateInStream`, `ImportFromXml → CreateInStream`, `ImportFromXml → CreateOutStream`, …)
- [Codeunit 4161 "Business Skill Builder"](../codeunit/4161.md) (3 calls: `ImportSkillElement → Create`, `ImportSkillElement → Initialize`, `ImportSkillElement → SetContentVersion`)

## Recent changes

- 2026-12-04 [#14695 Support Markdown files in Business Skills import](../../changes/bcapps/14695.md) (main, BC30, feature)
- 2026-11-23 [#14372 Move Business Skills core into System Application](../../changes/bcapps/14372.md) (main, BC30, feature, added)

## Across versions

- Present in: BC30
- Changed (declaration) in: none

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Create a new module in the System Application](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-new-module) — possibly related: System Application module creation and structure for Business Skill Port functionality (model-linked)
- [Module Architecture in the System Application](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-blueprint) — possibly related: Module architecture design for the Business Skill Port codeunit in System Application (model-linked)

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