---
id: object/codeunit/4163
type: object
title: Codeunit 4163 "Business Skill Impl."
summary: Codeunit 4163 "Business Skill Impl." in System Application (System.AI.BusinessSkills). 38 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-11-30T14:51:23.155Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: e96508902dc9262a66fbec28356cb0d13c436862eaf3ac4787e512417735fdcf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/System%20Application/App/Business%20Skills/src/BusinessSkillImpl.Codeunit.al
    title: src/System Application/App/Business Skills/src/BusinessSkillImpl.Codeunit.al (main)
    date: null
    commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/14578
    - change/bcapps/14372
object_type: codeunit
object_id: 4163
name: Business Skill Impl.
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: 47
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 11
  implements: 0
---

# Codeunit 4163 "Business Skill Impl."

> Codeunit 4163 "Business Skill Impl." in System Application (System.AI.BusinessSkills). 38 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/BusinessSkillImpl.Codeunit.al) · facts from BC30

## Properties

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

## Procedures

- `SkillExists(SkillId: BigInteger): Boolean`
- `ValidateSkillInsert(var Skill: Record "Business Skill")`: Validates a skill before insertion. App-owned skills require an identifier; an omitted version defaults to v1.0.
- `ValidateSkillModify(var Skill: Record "Business Skill")`: Validates a skill before it is modified.
- `IsManualSkill(Skill: Record "Business Skill"): Boolean`
- `CanEditContent(Skill: Record "Business Skill"): Boolean`: Returns whether the native manual editor can change the skill's instructions and version.
- `ValidateManualVersionChange(Skill: Record "Business Skill")`
- `ValidateContentChange(var Skill: Record "Business Skill"; NewContent: SecretText)`: Applies the version rules to a content change of a saved skill. A manual skill advances its version; a skill owned by an app must already carry a new version supplied by the app.
- `GetAppName(AppId: Guid): Text`
- `GetAppPublisher(AppId: Guid): Text`
- `CopySkill(SkillId: BigInteger): BigInteger`: Creates an inactive manual copy of a skill with the current content of the source skill. The copy gets a new skill ID from the platform and starts its own content history at v1.0.
- `UpdateSkillRecord(SkillId: BigInteger; var SourceSkill: Record "Business Skill"; SkillContent: SecretText): Boolean`
- `UpdateSkill(SkillId: BigInteger; Title: Text[250]; SkillContent: SecretText): Boolean`
- `ActivateSkill(SkillId: BigInteger)`
- `DeactivateSkill(SkillId: BigInteger)`
- `DeleteSkill(SkillId: BigInteger)`: Deletes an inactive skill. The platform does not check deletes, so the delete rules are enforced here.
- `DeleteSkill(SkillId: BigInteger; CallerAppId: Guid)`: Deletes an inactive skill and its manual history for the caller captured by an internal entry point or public facade.
- `CanDeleteSkill(Skill: Record "Business Skill"): Boolean`: Returns whether the calling app and the current user may delete the skill. A skill of an installed app can be deleted only by that app; a manual skill, or a skill whose app is no longer installed, needs the permission to manage business skills.
- `CanDeleteSkill(Skill: Record "Business Skill"; var DeleteError: Text): Boolean`: Returns whether deletion is permitted and, if not, the reason it is blocked.
- `SetContent(SkillId: BigInteger; SkillContent: SecretText)`
- `SetContent(SkillId: BigInteger; SkillContent: SecretText; ExpectedSystemId: Guid; ExpectedRevision: BigInteger)`
- `SetContent(SkillId: BigInteger; SkillContent: SecretText; NewVersion: Text[50])`: Changes the content of a skill owned by an app together with the new version supplied by the app.
- `SetNewContentAndUpdateVersion(CallerAppId: Guid; SkillCode: Code[100]; Content: SecretText; ContentVersion: Text[50])`: Updates the skill selected by its calling app and code, including inactive skills.
- `UpdateMetadata(CallerAppId: Guid; SkillCode: Code[100]; Name: Text[250]; Description: Text[2048])`: Updates only the calling app's skill metadata through the existing validation and write path.
- `IsSkillAvailableForCurrentCompany(SkillId: BigInteger): Boolean`: Skills are not scoped to companies yet, so every existing skill applies to the current company.
- `SetAvailableSkillsFilter(var BusinessSkill: Record "Business Skill")`
- `IsSkillAvailable(BusinessSkill: Record "Business Skill"): Boolean`
- `GetContent(var Skill: Record "Business Skill"): SecretText`: Returns the instructions of the skill, loaded from the database.
- `DownloadContent(SkillId: BigInteger)`: Downloads current stored content independently of manual content history.
- `GetContentFromBuffer(var Skill: Record "Business Skill"): SecretText`: Returns the content already loaded or assigned on the record buffer without reloading it.
- `SetContent(var Skill: Record "Business Skill"; Value: SecretText)`: Sets instructions without saving the record, applying manual or app-owned version rules.
- `GetEncoding(): TextEncoding`: Returns the encoding used by skill, history and portable text streams.
- `ReadText(Input: InStream): SecretText`: Reads the stream line by line, inserting separators only between returned lines.
- `GetMaxLength(): Integer`: Returns the maximum supported instruction length.
- `ValidateLength(Value: SecretText)`: Checks the persistent instruction limit independently of the UI.
- `EncodeContent(Value: SecretText): SecretText`: Encodes text for HTML attributes and content, not for JavaScript execution.
- `WriteText(Output: OutStream; Value: SecretText)`: Unwraps only at the stream boundary; callers retain protected content.
- `ContentEquals(Value: SecretText; Other: SecretText): Boolean`: Compares protected content without returning plaintext.
- `IsBlank(Value: SecretText): Boolean`: Checks whitespace without exposing the content.

Plus 9 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 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `DownloadContent → CreateInStream`, `DownloadContent → CreateOutStream`)
- [Codeunit 4161 "Business Skill Builder"](../codeunit/4161.md) (1 call: `CopySkill → Initialize`)
- [Codeunit 4166 "Business Skill Content History"](../codeunit/4166.md) (1 call: `CopySkill → GetLatestContent`)

## Called by

- [Codeunit 4162 "Business Skill Builder Impl."](../codeunit/4162.md) (10 calls: `Create → GetContentFromBuffer`, `Create → SetContent`, `Create → ValidateSkillInsert`, …)
- [Codeunit 4160 "Business Skill"](../codeunit/4160.md) (8 calls: `Activate → ActivateSkill`, `Deactivate → DeactivateSkill`, `Delete → DeleteSkill`, …)
- [Page 4161 "Business Skill Card"](../page/4161.md) (8 calls: `ActivateSkill → ActivateSkill`, `OnDeleteRecord → DeleteSkill`, `OnInsertRecord → GetContentFromBuffer`, …)
- [Codeunit 4167 "Business Skill Port"](../codeunit/4167.md) (7 calls: `DownloadBlob → GetEncoding`, `ImportFromXml → GetEncoding`, `ImportFromXml → WriteText`, …)
- [Codeunit 4166 "Business Skill Content History"](../codeunit/4166.md) (6 calls: `DownloadVersion → GetEncoding`, `DownloadVersion → WriteText`, `GetContent → GetContent`, …)
- [Table 4160 "Bus Skill Content Version"](../table/4160.md) (5 calls: `GetContent → GetEncoding`, `GetContent → ReadText`, `SetContent → GetEncoding`, …)
- [Codeunit 4165 "Business Skill Test Impl."](../codeunit/4165.md) (2 calls: `ActivateSkill → ActivateSkill`, `InactivateSkill → DeactivateSkill`)
- [Page 4160 "Business Skills"](../page/4160.md) (2 calls: `OnDeleteRecord → DeleteSkill`, `OnInsertRecord → GetContentFromBuffer`)
- [Page 4163 "Business Skill Content Part"](../page/4163.md) (2 calls: `LoadSkillSnapshot → GetContent`, `SetSkillId → CanEditContent`)
- [Page 4162 "Bus Skill Content Versions"](../page/4162.md) (1 call: `OnAfterGetCurrRecord → CanEditContent`)
- [XMLport 4160 "Business Skill Export"](../xmlport/4160.md) (1 call: `SetExportContent → GetContent`)

## Recent changes

- 2026-11-27 [#14578 Improve Business Skills list actions and content authoring](../../changes/bcapps/14578.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

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