Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

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.

  • 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans