Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 58670

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

$
0
0
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));

Viewing all articles
Browse latest Browse all 58670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>