Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

How do I get the Contact Information of the Vendor with sales purpose of the particular Purchase Order for my PO Confirmation Report?

$
0
0

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;
    }


Viewing all articles
Browse latest Browse all 175888

Trending Articles