How to get company address in D365FO | x++ code to get Legal Entity address in Dynamics 365 Finance and operation
Below is the x++ code to get Legal Entity address in Dynamics 365 Finance and operation . You can try this code in job also.
CompanyInfo companyInfo = CompanyInfo::find();
info(strFmt("%1",companyInfo.postalAddress().Address));