xInfo::releaseVersion Method [AX 2012]

Retrieves the version number of the current Microsoft Dynamics AX executable; for example: 3.0, or 4.0.

client server public static str releaseVersion()

Run On

ClientOrServer

Return Value

Type: str
A string containing the Microsoft Dynamics AX version number.

Possible version numbers include 3.0 and 4.0.

The following example uses this return the version number as part of a string that contains Microsoft Dynamics AX version information.

static client str axaptaReleaseID() 
{ 
    #define.versionPrefix('v') 
    #define.versionNumber('#') 
    #define.versionPartition('/') 
 
    return    #versionprefix+xInfo::releaseVersion()+ 
              #versionNumber+xInfo::buildNo()+ 
              #versionPartition+ApplicationVersion::buildNo(); 
}
Show: