web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / The Dynamics 365 Library / How to retrieve the license...

How to retrieve the license information through code

Faisal Fareed Profile Picture Faisal Fareed 10,796 User Group Leader
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:


This was originally posted here.

Comments

*This post is locked for comments