Bc Install Codeunit Generator

Generates install codeunits (Subtype = Install) for Business Central extensions that run code during first install or reinstall. Creates codeunits with OnInstallAppPerCompany and OnInstallAppPerDatabase triggers, fresh install vs reinstall detection using ModuleInfo.DataVersion, initial data seeding (setup records, default configuration, permission assignments), precondition checks, telemetry logging on install events, and multi-company awareness. Handles NavApp.GetCurrentModuleInfo for version detection and Version.Create(0,0,0,0) pattern for first-time install identification. Use when asked to create install code, add extension installation logic, initialize data on install, seed default records, create install codeunit, implement first-run setup, or add reinstall handling for a Business Central extension.

fernandoartalf 87053db 4 files · 26.0 KB Updated

File contents

fernandoartalf/AL-Copilot-Skills-Collection/tree/main/skills/bc-install-codeunit-generator commit 87053dbc2e

Frequently asked questions

npx skillmds@latest add fernandoartalf/bc-install-codeunit-generator