Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Saturday, March 29, 2014

Code to get the active company name in AX

Hi
 Static void PrintCurrentCompanyName(Args _args)
{
    print Curext();  //or
   print CompanyInfo::Find().DataAreaId;
   pause;

}

Regards,

No comments:

Post a Comment

Get a table ID in SQL - D365

Hi select ID from SysTableIdView where  SysTableIdView .Name = 'CustTable' Regards,