web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :

How to Get the legal entity(current company) address in D365 / AX 2012 based on the Address Type

Rahul Kiran Profile Picture Rahul Kiran 481
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.

Comments

*This post is locked for comments