[X++] Get Address by role
Just a short note for myself to remember how to get the address to a Party Relation via Code by it's role:
DirParty::findPostalAddressByRole(CustTable::find('MyCustAccount').Party, LogisticsLocationRoleType::Delivery);
Just a short note for myself to remember how to get the address to a Party Relation via Code by it's role:
DirParty::findPostalAddressByRole(CustTable::find('MyCustAccount').Party, LogisticsLocationRoleType::Delivery);