---
id: object/codeunit/4160
type: object
title: Codeunit 4160 "Business Skill"
summary: Codeunit 4160 "Business Skill" in System Application (System.AI.BusinessSkills). 9 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: 4d77e9e7e3aaeaab444ca2daa997e539adc452e88707ec2907b50f88ea4877dd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/System%20Application/App/Business%20Skills/src/BusinessSkill.Codeunit.al
    title: src/System Application/App/Business Skills/src/BusinessSkill.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: 4160
name: Business Skill
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: 9
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 1
  implements: 0
---

# Codeunit 4160 "Business Skill"

> Codeunit 4160 "Business Skill" in System Application (System.AI.BusinessSkills). 9 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/BusinessSkill.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Public |

## Procedures

- `GetContent(var BusinessSkill: Record "Business Skill"): SecretText`: Loads and returns the stored instructions of the skill.
- `GetContentFromBuffer(var BusinessSkill: Record "Business Skill"): SecretText` (internal): Returns the content already loaded or assigned on the record buffer without reloading it.
- `Activate(SkillId: BigInteger)`: Activates a skill after validating its name and content.
- `Deactivate(SkillId: BigInteger)`: Deactivates a skill without changing its content.
- `Delete(SkillId: BigInteger)`: Deletes an inactive skill and its manual history subject to owning-app and management-permission checks.
- `IsAvailable(BusinessSkill: Record "Business Skill"): Boolean`: Returns whether the supplied skill is active and available to consumers.
- `SetNewContentAndUpdateVersion(SkillId: BigInteger; Content: SecretText; ExpectedSystemId: Guid; ExpectedRevision: BigInteger)` (internal): Updates manual content only if the expected identity and revision still match, without committing. Changed content automatically advances the version and appends history. Identical content does not write.
- `SetNewContentAndUpdateVersion(SkillCode: Code[100]; Content: SecretText; ContentVersion: Text[50])`: Updates the calling app's skill identified by its code, preserving its status and other metadata. Changed content requires a nonblank version different from the saved version. Version-only changes fail. Identical content and version do not write. App-owned content does not create history.
- `UpdateMetadata(SkillCode: Code[100]; Name: Text[250]; Description: Text[2048])`: Updates the calling app's skill name and description without changing its content, version, history, status or lock. Normal table and management permissions apply. Identical metadata does not write.

## 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) (8 calls: `Activate → ActivateSkill`, `Deactivate → DeactivateSkill`, `Delete → DeleteSkill`, …)

## Called by

- [Codeunit 4165 "Business Skill Test Impl."](../codeunit/4165.md) (1 call: `SetNewContentAndUpdateVersion → SetNewContentAndUpdateVersion`)

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