Wednesday, August 23, 2017

X++ code to find current legal entity Country region

static void FindCountryregionforLegalentity(Args _args)
{
    CompanyInfo    company;
    #ISOCountryRegionCodes
    boolean         isIsoUS       = SysCountryRegionCode::isLegalEntityInCountryRegion([#isoUS]);
    if(isIsoUS == true)
    {
        info("US");
    }
}

Export a copy of the standard user acceptance testing (UAT) database

 Reference link: Export a copy of the standard user acceptance testing (UAT) database - Finance & Operations | Dynamics 365 | Microsoft ...