Get the active company in AX 2009 - curExt()
Use the curExt() function to get the active company in AX;
static void curExtExample(Args _arg)
{
str CompanyId;
;
CompanyId = curExt();
Info(CompanyId);
}
Or else you can also use the following code.
static void curExtExample(Args _arg)
{
str CompanyId;
;
CompanyId = CompanyInfo::Find().DataAreaId;
Info(CompanyId);
}
No comments:
Post a Comment