Codeunit 4163 "Business Skill Impl."
System Application · System.AI.BusinessSkills
Across versions
- BC23-29not present
- BC30added
Neighbourhood 13 connected objects and pages
System Application · System.AI.BusinessSkills · BC30 · source at f53bb0f1 · facts from BC30
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
SkillExists(SkillId: BigInteger): BooleanValidateSkillInsert(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"): BooleanCanEditContent(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): TextGetAppPublisher(AppId: Guid): TextCopySkill(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): BooleanUpdateSkill(SkillId: BigInteger; Title: Text[250]; SkillContent: SecretText): BooleanActivateSkill(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"): BooleanGetContent(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” (2 calls:
DownloadContent → CreateInStream,DownloadContent → CreateOutStream) - Codeunit 4161 “Business Skill Builder” (1 call:
CopySkill → Initialize) - Codeunit 4166 “Business Skill Content History” (1 call:
CopySkill → GetLatestContent)
Called by
- Codeunit 4162 “Business Skill Builder Impl.” (10 calls:
Create → GetContentFromBuffer,Create → SetContent,Create → ValidateSkillInsert, …) - Codeunit 4160 “Business Skill” (8 calls:
Activate → ActivateSkill,Deactivate → DeactivateSkill,Delete → DeleteSkill, …) - Page 4161 “Business Skill Card” (8 calls:
ActivateSkill → ActivateSkill,OnDeleteRecord → DeleteSkill,OnInsertRecord → GetContentFromBuffer, …) - Codeunit 4167 “Business Skill Port” (7 calls:
DownloadBlob → GetEncoding,ImportFromXml → GetEncoding,ImportFromXml → WriteText, …) - Codeunit 4166 “Business Skill Content History” (6 calls:
DownloadVersion → GetEncoding,DownloadVersion → WriteText,GetContent → GetContent, …) - Table 4160 “Bus Skill Content Version” (5 calls:
GetContent → GetEncoding,GetContent → ReadText,SetContent → GetEncoding, …) - Codeunit 4165 “Business Skill Test Impl.” (2 calls:
ActivateSkill → ActivateSkill,InactivateSkill → DeactivateSkill) - Page 4160 “Business Skills” (2 calls:
OnDeleteRecord → DeleteSkill,OnInsertRecord → GetContentFromBuffer) - Page 4163 “Business Skill Content Part” (2 calls:
LoadSkillSnapshot → GetContent,SetSkillId → CanEditContent) - Page 4162 “Bus Skill Content Versions” (1 call:
OnAfterGetCurrRecord → CanEditContent) - XMLport 4160 “Business Skill Export” (1 call:
SetExportContent → GetContent)
Recent changes
- 2026-11-27 #14578 Improve Business Skills list actions and content authoring (main, BC30, feature)
- 2026-11-23 #14372 Move Business Skills core into System Application (main, BC30, feature, added)
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.