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 :

Query to get Tax Registration Number by party Name in Ax 2012

SANTOSH KUMAR SINGH Profile Picture SANTOSH KUMAR SINGH 1,224
This is the Query to get Tax Registration Number by party Name in Ax 2012. Intermediate table for DirPartyTable and taxRegistration is DirPartyLocation and registrationNumber is the field to get value of tax registration Number.


DirPartyTable DirPartyTable;
DirPartyLocation DirPartyLocation;
taxRegistration taxRegistration;

select * from DirPartyTable
        where DirPartyTable.Name == "TestName";

    select * from DirPartyLocation
        where DirPartyLocation.Party == dirPartyTable.RecId;

    select registrationNumber
        from taxRegistration
        where taxRegistration.DirPartyLocation == dirPartyLocation.RecId;

    info(strFmt("reg %1",taxRegistration.RegistrationNumber));

This was originally posted here.

Comments

*This post is locked for comments