web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Automatic Object ID Generation in Business Central AL (Tables, Pages, Codeunits, Extensions, etc.)

(0) ShareShare
ReportReport
Posted on by 45

In Business Central AL development, object IDs are required for all object types such as tables, pages, codeunits, reports, page extensions, table extensions, interfaces, enums, and so on.

Currently, object IDs must be manually assigned at design time, typically within a predefined idRanges block in app.json. While this works, managing IDs becomes challenging in larger projects or team-based development, especially when working across multiple object types.

My questions are:

  • Is there any built-in or recommended way in Business Central / AL to automatically generate or assign object IDs for new objects?

  • Are there best practices or tooling approaches (VS Code extensions, workflows, conventions) that teams commonly use to avoid ID conflicts and manual tracking?

  • How do teams usually handle this across multiple object types, not just tables?

I understand that runtime generation is not possible, but I’m looking for practical, near-automatic approaches that are commonly adopted in real-world AL development.

Any guidance or shared experiences would be appreciated.

I have the same question (0)
  • Suggested answer
    Yi Yong Profile Picture
    2,608 Super User 2025 Season 2 on at
    Hello,
     
     
    If you are working solo on a project, then VSCode IntelliSense will handle it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,913

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2025 Season 2

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,064

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans