Dear All,
I use Microsoft Dynamic AX 2012R3
I create a function to get primary address of customer
Here is my code
public String255 getPrimaryAddress(AccountNum _accountNum)
{
CustTable custTable;
DirPartyTable dirPartyTable;
DirPartyLocation dirPartyLocation;
LogisticsLocation logisticsLocation;
DirPartyPostalAddressView postalAddressView;
custTable = custTable::find(_accountNum);
dirPartyTable = DirPartyTable::findRec(custTable.Party);
dirPartyLocation = DirPartyLocation::findPrimaryPartyLocation(dirPartyTable.RecId);
logisticsLocation = LogisticsLocation::find(dirPartyLocation.Location);
postalAddressView = DirPartyPostalAddressView::find(dirPartyTable.RecId,logisticsLocation.RecId);
return postalAddressView.Address;
}
And this is an example of address I get

As we can see, the bottom of address I can get short name of country
How to make it full name country?
Thanks in advance
Best Regards,
Bintang
*This post is locked for comments
I have the same question (0)