How to get the current company(Legal Entity) address in Axapta 2012 based on the Address Type?: In single line of code: static void getAddressBasedOnPurposeForLegalEntity(Args _args) { LogisticsAddressing address; ; address = DirParty::findPostalAddressByRole(CompanyInfo::current(), LogisticsLocationRoleType::RemitTo).Address; info(address); }