For extracting data into XML from Tally, I am using below XML Query.
To improve the response time I have restricted the data based on the voucher date and voucher type. However, I feel there is still a room for improvement as the current response contains all the possible fields in the Voucher.
Hence, My question: How can I specify specific fields so that the XML response will be smaller.
<ENVELOPE>
<HEADER>
<VERSION>1</VERSION>
<TALLYREQUEST>EXPORT</TALLYREQUEST>
<TYPE>DATA</TYPE>
<ID>Voucher Register</ID>
</HEADER>
<BODY>
<DESC>
<STATICVARIABLES>
<SVFROMDATE TYPE="DATE">20210101</SVFROMDATE>
<SVTODATE TYPE="DATE">20210101</SVTODATE>
<VOUCHERTYPENAME TYPE="STRING">Sales</VOUCHERTYPENAME>
</STATICVARIABLES>
</DESC>
</BODY>
</ENVELOPE>
As per my knowledge in above xml you cannot limit fields
My suggestion is first get List of vouchers with only voucher masterids
then loop though list of vouchers and get each voucher object using this XML where you can limit fields