# ModuleInfo.DataVersion() Method
> Version: _Available or changed with runtime version 1.0._
Gets the version of the specified application's data in the context of a given tenant. This indicates the last version that was installed or successfully upgraded to and will not match the application version if the tenant is in a data upgrade pending state.
## Syntax
```al
DataVersion :=   ModuleInfo.DataVersion()
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
ModuleInfo
Type: moduleinfo-data-type
An instance of the moduleinfo-data-type data type.
## Return Value
DataVersion
Type: ../version/version-data-type
The version
## Related information
moduleinfo-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/moduleinfo/moduleinfo-dataversion-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/moduleinfo/moduleinfo-dataversion-method/
