Вот как-то так:
X++:
LogisticsElectronicAddress logisticsElectronicAddress;
MapEnumerator me = new MapEnumerator(mapLogisticsElectronicAddress);
CustTable custTable;
RefRecId refRecId;
while (me && me.moveNext())
{
refRecId = str2Int64(conPeek(str2Con_RU(me.currentKey(), "_"), 1));
logisticsElectronicAddress = LogisticsElectronicAddress::findRecId(refRecId);
custTable = CustTable::findByPartyRecId(logisticsElectronicAddress .PrivateForParty);
}