To get "list of companies" i am using Below xml request. It was working fine with old versions of Tally. But not working in tally prime version. Xml request: Code: <ENVELOPE><HEADER><TALLYREQUEST>Export Data</TALLYREQUEST></HEADER><BODY><EXPORTDATA><REQUESTDESC><REPORTNAME>List of Companies</REPORTNAME><STATICVARIABLES><SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT></STATICVARIABLES></REQUESTDESC></EXPORTDATA></BODY></ENVELOPE> Response from tally prime version : Error only for Getting list of companies. How to solve this Problem?
read the error message, it tells you what the problem is 'list of companies' is not a report it is a collection, that's why it not able to found a report 'list of companies'
How to get "list of companies" in tally prime using xml request? can anyone please suggest the xml request for getting " list of companies" in tally prime.
Since Prime update I am also getting same error so am searching for solution and found this post, Now I got solution for this error Code: <ENVELOPE> <HEADER> <VERSION>1</VERSION> <TALLYREQUEST>Export</TALLYREQUEST> <TYPE>Data</TYPE> <ID>List of Companies</ID> </HEADER> <BODY> <DESC> <TDL> <TDLMESSAGE> <REPORT NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No"> <FORMS>List of Companies</FORMS> </REPORT> <FORM NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No"> <TOPPARTS>List of Companies</TOPPARTS> <XMLTAG>"List of Companies"</XMLTAG> </FORM> <PART NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No"> <TOPLINES>List of Companies</TOPLINES> <REPEAT>List of Companies : Collection of Companies</REPEAT> <SCROLLED>Vertical</SCROLLED> </PART> <LINE NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No"> <LEFTFIELDS>Name</LEFTFIELDS> </LINE> <FIELD NAME="Name" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No"> <SET>$Name</SET> <XMLTAG>"NAME"</XMLTAG> </FIELD> <COLLECTION NAME="Collection of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No"> <TYPE>Company</TYPE> </COLLECTION> </TDLMESSAGE> </TDL> </DESC> </BODY> </ENVELOPE> You will get Response(If Company or Companies is opened) Code: <LISTOFCOMPANIES> <NAME>ABC Company</NAME> <NAME>Test</NAME> </LISTOFCOMPANIES>
TallyPrime XML Request are slight different from TallyERP, some of the additional TDL codes are required for List Of companies, click to view TDL structure in xml request Getting List of Companies