I have successfully gotten the contact information, e.g. Contact Phone and Email of the vendor, the Contact Information is coming from logisticsElectronicAddress > logisticsLocation > dirPartyLocation > dirPartyTable > vendTable how can I filter the Email or Phone, or the purpose when getting the Information from the logisticsElectronicAddress table.
public str getContactInfo(AccountNum _vendAccount)
{
LogisticsElectronicAddress logisticsElectronicAddress;
LogisticsLocation logisticsLocation;
DirPartyLocation dirPartyLocation;
DirPartyTable dirPartyTable;
VendTable vendTable;
select Locator from logisticsElectronicAddress
join logisticsLocation
where logisticsLocation.RecId == logisticsElectronicAddress.Location
join dirPartyLocation
where dirPartyLocation.Location == logisticsLocation.RecId
join dirPartyTable
where dirPartyTable.RecId == dirPartyLocation.Party
join vendTable
where vendTable.Party == dirPartyTable.RecId
&& vendTable.AccountNum == _vendAccount
return logisticsElectronicAddress.Locator;
}