How to Get the legal entity(current company) address in D365 / AX 2012 based on the Address Type
Views (2147)
Below is the piece of code will return the current company address based on role type.
LogisticsAddressing address;
;
address = DirParty::findPostalAddressByRole(CompanyInfo::current(), LogisticsLocationRoleType::RemitTo).Address;
info(address);
@Rahul
This was originally posted here.

Like
Report
*This post is locked for comments