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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to get Vendor primary tel, fax, email in AOT Query

(0) ShareShare
ReportReport
Posted on by 319

Hello All,

I need put the Vendor's information about tel, fax, email (primary) in SSRS report.

I just can use AX 2012 AOT Query, please help and thank you.

I use SQL:

select P.PURCHID,P.ORDERACCOUNT,P.PURCHNAME,V.TAXGROUP,V.PAYMTERMID,V.CURRENCY, Max (case when D.PRIMARYCONTACTPHONE = LA.RECID then LA.LOCATOR else '' end) as 'Phone',Max (case when D.PRIMARYCONTACTFAX = LA.RECID then LA.LOCATOR else '' end) as 'Fax',Max(case when D.PRIMARYCONTACTEMAIL = LA.RECID then LA.LOCATOR else '' end) as 'Email'
from PURCHTABLE as P join ( VENDTABLE as V join ( DIRPARTYTABLE as D join LOGISTICSELECTRONICADDRESS as LA on D.RECID = LA.PRIVATEFORPARTY ) on V.PARTY = D.RECID ) on P.ORDERACCOUNT = V.ACCOUNTNUM
Group by P.PURCHID,P.ORDERACCOUNT,P.PURCHNAME,V.TAXGROUP,V.PAYMTERMID,V.CURRENCY
order by P.PURCHID

Br, Jen

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Why don't you  take a chance to look at existing vendor report, which displays the basic vendor information.

    BTW each party has a primary location and there are contact information against the primary location. this includes things like Phone#, Fax, etc.

    On VendTable there are methods like email(),  postalAddress() etc. These can be seen to get the idea about how you can get the information.

  • ATMA-Jen Profile Picture
    319 on at

    Hello Sohaib,

    I check the vendor report that use RDP and temp Table (VendListBasicTmp Table).

    I would like to know can I join the temp Table in my AOT Query and relation with VendTable by VendorListBasicTmp.VendAccount == VendTable.AccountNum ? or not?

    I guess not , I guess I will get empty data....

    so, how can I do for this case?? if I just use the AOT query function?

    Thanks.

    Br, Jen

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans