Below code will fetch the customer's electronic and postal addresses.
LogisticsElectronicAddress electronicAddress;
CustTable custTable;
;
custTable = CustTable::find('CUST-000011', false);
electronicAddress = DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Phone);
print electronicAddress.Locator;
print custTable.postalAddress().Address;
pause;
No comments:
Post a Comment