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

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

MCP · Azure DevOpsYour delivery board, readable by an agentMCP · DataverseOne consent, and the data layer opensMCP · Dynamics 365 F&OConnecting F&O to an agent Microsoft hasn’t documented
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:

Previous article← Ludo's Development Journal: AX 2012 Create new project tool
Discussion

Ask a question or leave feedback

This is a review interaction. The WordPress version will store, thread and moderate comments.

Thanks — submitted for moderation in this review.
Search the whole site · Ctrl/⌘ + K