Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

How to retrieve all vendors list from table dbo.Vendor for a given company

Posted on by 55

How to retrieve all vendors list from  table dbo.Vendor including the three/four letter company id ( dbo.Company.CpnyId ) ?

 

Basically i cannot find any joining coloumn to get all vendors for a given company id.

*This post is locked for comments

  • Butch Adams Profile Picture
    Butch Adams 4,757 on at
    RE: How to retrieve all vendors list from table dbo.Vendor for a given company

    Another idea is to join vendors.vendid with APHist.vendid and filter for current year and APHist.ytdpurch>0.

    The result is a record for each company each vendor was paid from.  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to retrieve all vendors list from table dbo.Vendor for a given company

    Vendors are not company specific.  Depending on what you need the info for - you could link to APDoc on vendid and see which cpnyid has apdoc records for the vendor or possibly if your users are company specific you could look at the crtd_user for the vendors.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans