Dynamics 365 Business Central: Version Data Type (Major.Minor.Build.Revision)
The Version data type in Business Central stores version numbers in Major.Minor.Build.Revision format and provides methods to create and retrieve version components. Administrators use version information for troubleshooting and environment management, while developers use the Version data type to handle version numbers programmatically in AL code.

post Dynamics 365 Lab
"Version data type: Represents a version matching the format: Major.Minor.Build.Revision."
Key points
- Version data type stores version numbers matching Major.Minor.Build.Revision format with optional Build and Revision components
- Static methods Create() allow building version objects from text strings or individual integer parameters
- Instance methods Major(), Minor(), Build(), Revision() and ToText() retrieve specific version components
- Version data type cannot be used directly as a table field or page variable
- Version information helps administrators troubleshoot issues and manage environment updates
Quotes
- “Version data type: Represents a version matching the format: Major.Minor.Build.Revision.” (Defines the exact structure and purpose of the Version data type that developers use in AL code)
- “If you’re an administrator, knowing the version numbers is important for troubleshooting, development, and on-premises upgrade scenarios.” (Explains why understanding versions matters for system administrators managing Business Central environments)
- “Version Data Type cannot be directly used as a table field.” (Important limitation developers need to know when designing their data structures)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Dynamics 365 Business Central: How to display a custom Application Version (e.g., from W1 28.0 to YUN ZHU 28.0) — possibly related: both name Codeunit 9015 “Application System Constants”
- Transitioning from Codeunit 1 to System Codeunits — possibly related: names Codeunit 9015 “Application System Constants”
Heads up
- warning: “Version Data Type cannot be directly used as a table field.”
- warning: “It also cannot be directly added to the page as a variable.”
Context
- Features: Version data type, Create method with text string, Create method with integer parameters, Major() method, Minor() method, Build() method, Revision() method, ToText() method
- Versions: 2025 wave 2, 27, 27.0, 27.1
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.