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

Below is the x++ code to get Legal Entity address in Dynamics 365 Finance and operation . You can try this code in job also.
*This post is locked for comments