web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to get the vendors list which Partyid is not available in Dirpartyloaction Table

(0) ShareShare
ReportReport
Posted on by

Hi All,

I want to get all vendors list which doesn't  any address..so I have checked that if vendor party id is not available in Dirpartylocation table then it doesnt have any address.

Please let me know how to get vendors list which party id is not vailable in DirpartyLocation table.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please use the following job/code to get the list of vendors with no postal address.

    static void AXC_VendorNoAddress(Args _args)
    {
        LogisticsPostalAddressView postalAddressView;
        DirPartyTable  dirPartyTable;
        VendTable vendTable;
        DirPartyLocation dirPartyLocation;
        
        while select vendTable
            join dirPartyTable
            where dirPartyTable.RecId == vendTable.Party
            notexists join dirPartyLocation
            where dirPartyLocation.Party == dirPartyTable.RecId
            && dirPartyLocation.IsPostalAddress == NoYes::Yes
        {
            info(strFmt("Vend Account: %1, Name: %2", vendTable.AccountNum, vendTable.name()));       
        }
    }
  • Suggested answer
    Srini Ramidi Profile Picture
    2 on at

    In case if you want to check in SQL:

    SELECT * FROM VENDTABLE

    LEFT JOIN DIRPARTYLOCATION ON  VENDTABLE.PARTY=DIRPARTYLOCATION.PARTY

    WHERE DIRPARTYLOCATION.PARTY IS NULL

  • Community Member Profile Picture
    on at

    Thank you Chaitanya..it gives me required records

  • Community Member Profile Picture
    on at

    Thanks Srinivas..

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Could you please mark the helpful answers as verified.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans