AL Range Pack
AL Range Pack is a professional tool for Microsoft Dynamics 365 Business Central developers.
It automates the tracking of AL object IDs by syncing them in real time to a cloud database (Supabase), effectively preventing ID conflicts across different branches and developers.
Core Features
1. Cloud Synchronization & Monitoring
- Automatic Sync: Any creation, modification, or deletion of an
.al file in the workspace is automatically detected and synchronized with the cloud database.
- Identity Tracking: Monitors ID or Name changes within the same file, ensuring the remote record is updated instead of duplicated.
- Real-Time Updates: Powered by Supabase Realtime, the extension updates your TreeViews immediately whenever a colleague occupies, releases, or reserves an ID on another branch.
- Obsolete Branch Cleanup: Compare branches registered on the cloud database against active local and remote Git branches (
Clean Obsolete Branches on Cloud-Database) to remove orphaned records left behind by closed or merged feature branches—manually or automatically at startup.
2. Conflict, Out-of-Range & Reservation Management
- Duplicate & Conflict Detection: Immediately flags IDs used multiple times within the local branch or across remote branches.
- Out-of-Range Verification: Automatically checks every AL object ID in the workspace against the
idRanges / idRange declared in your app.json files, highlighting out-of-range objects (🚫 Out of Range) in both the TreeView and the editor.
- Quick Conflict & Range Resolution:
- Reassign to Next Available ID: Automatically updates the object declaration in the
.al file to the first free ID within app.json ranges and syncs the change to the cloud database.
- Trust the Branch Version: Removes conflicting remote entries so the current branch version takes precedence.
- ID Reservation System: Reserve free IDs directly from the Available IDs view with an optional descriptive note (
Reserve ID) to lock them for upcoming features, and release them at any time (Release Reserved ID).
- Inline CodeLens & Editor Alerts: Displays real-time status directly above every AL object declaration (
✅ Synced, 🌿 Local, 🔒 Reserved, ⚠️ Conflict, 🚫 Out of Range) with one-click reassignment actions and non-intrusive notifications when opening conflicting files.
3. Available IDs & Range Capacity Analytics
- app.json Range Analysis: Parses
idRanges and idRange across all app.json files in your workspace.
- Usage Statistics & Warning Threshold: Displays occupancy metrics for every AL object category (e.g.,
TABLE (42/100 used - 58 free)) and highlights categories exceeding the configurable critical usage threshold (default 80%) with a warning indicator.
- Full AL Object Type Support: Displays all standard AL object categories (
table, tableextension, page, pageextension, report, reportextension, codeunit, xmlport, query, enum, enumextension, etc.) even before the first object of that type exists in the project.
- Rapid Object Creation: Click the
+ action on any free ID in the Available IDs TreeView to launch a wizard that creates a new .al file with the selected ID, object name, and namespace pre-filled.
4. User Interface (TreeViews)
- Object in branch: Hierarchical view grouped by AL object type with status badges, tooltips (user, branch, namespace, timestamp), and a status bar counter for duplicates and out-of-range objects.
- Search & Advanced Filtering: Filter the Object in branch view by text (object name, ID, namespace, user, or branch) or use quick presets (Current Branch Only, Unsynced Local Objects Only, Duplicates & Out of Range Only, Reserved IDs Only).
- Available IDs: Dynamic view listing all free and reserved IDs within your configured
app.json ranges.
Extension Settings
This extension contributes the following settings under AL Range Pack:
visibleObjectTypes: List of AL object types always displayed in the Available IDs view, even when no objects of that type exist yet in the workspace.
rangeUsageWarningThreshold: Percentage threshold (1–100, default 80) of ID range usage at or above which a warning indicator is displayed on object categories in the Available IDs view.
autoCleanObsoleteBranchesOnStartup: Automatically check the cloud database at startup for records belonging to closed or merged Git branches (default false).
| |