Wednesday, May 14, 2014

AX 2012: How to retrieve the license information through X++

Recently I came across the requirement to retrieve the licence information from the system to use it for some purpose.



Here is the sample to job to get license information.

static void getLicenseValue(Args _args)
{
    str licVal;
 
    licVal = xSysConfig::find(ConfigType::SerialNo, 0).Value;
 
    info(strFmt("%1", licVal));
}

Output:

No comments:

Post a Comment

I will appreciate your comments !

Download large bacpac (sandbox database) to DEV environment much faster

As the LCS website gets slower and slower and the database backups get bigger and bigger.  Use AZCopy to download objects out of LCS asset l...