Showing posts with label CurrentCompany. Show all posts
Showing posts with label CurrentCompany. Show all posts

Compnay Currency X++



Company Currency X++



You can find the company Currency using below Code.

CompanyInfo::standardCurrency() 
Ledger::accountingCurrency(CompanyInfo::current()

info(strFmt("%1",CompanyInfo::standardCurrency() ));

info(strFmt("%1",Ledger::accountingCurrency(CompanyInfo::current())));

Support Faryal's Cusine


How to Get Current Company



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);
}

Support Faryal's Cusine


Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...