There are various ways in x++ to check the current company in X++ (Ax2012 / D365FO). 1. Using SysCountryRegionCode::isLegalEntityInCountryRegion Simplest built-in method. Example: #ISOCountryRegionCodes if (SysCountryRegionCode::isLegalEntityInCountryRegion(#isoUS)) { info("Current legal entity






































