Finding current company in AX X++
static void ShyamCurrentCompany(Args _args)
{
info(CompanyInfo::find().company());
}
static void ShyamCurrentCompany(Args _args)
{
info(CompanyInfo::find().company());
}
OR
str curCompId=curExt();
if(curCompId=="PRO")
{
// YOUR CODE
}
else if(curCompId=="RAO")
{
//YOUR CODE
}
Comments
Post a Comment