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

Community site session details

Session Id :

How to Get Current Company

Sheikh Sohail Profile Picture Sheikh Sohail 6,125


How to Get Current Company

Hi,
 
Please use to get current logged in company with curExt();
 
Example :
 
static void curExtExample(Args _arg)
{
    str _CompanyId;
    ;
 
    _CompanyId= curExt();
      Info(_CompanyId);
}
 
 
You can also get the logged in company with below code
 
static void curExtExample(Args _arg)
{
    str _CompanyId;
    ;
 
   _CompanyId= CompanyInfo::Find().DataAreaId;
   Info(_CompanyId);
}

This was originally posted here.

Comments

*This post is locked for comments