IT Technical Support for Developers

Tally Request XMLs


Party wise Sales in xml format

How to export All Party wise Sales data from tally using XML request

Request for XML Format Party Sales for Integration from Tally.

<ENVELOPE>
<HEADER>
<TALLYREQUEST>Export Data</TALLYREQUEST>
</HEADER>

<BODY>
<EXPORTDATA>
 <REQUESTDESC>
         <REPORTNAME>Group Summary</REPORTNAME>
  <STATICVARIABLES>
     
   <SVCURRENTCOMPANY>company</SVCURRENTCOMPANY>                       
   <SVEXPORTFORMAT>$$SysName:html</SVEXPORTFORMAT>
   <SVFROMDATE TYPE="Date">#fromdate</SVFROMDATE>
                        <SVTODATE TYPE="Date">#todate</SVTODATE>
                        <DSPShowNett>No</DSPShowNett>
                      
                  
                           <GroupName>22003 SUNDRY DEBTORS</GroupName>
                          <DSPShowTrans>Yes</DSPShowTrans>
                          <IFLTPrompt>Voucher</IFLTPrompt>
                          <IFLTMethod>Invoice</IFLTMethod>
                          <IFLTAttr>Yes</IFLTAttr>
               
                </STATICVARIABLES>


 </REQUESTDESC>

</EXPORTDATA>
</BODY>
</ENVELOPE>







Tally Integration, Tally ERP 9 Integration with Node.JS

Tally ERP Data Accessing via Node.js

Getting Tally ERP data using Server side javascript (node.js)
1. Create a NodeJS, express application
2. Install necessary plugins such as cors,xml,body-parser and request.

Server.js

var express = require('express');
var router = express.Router();
var bodyParser = require('body-parser');
var cors = require('cors');
var request = require('request');
require('body-parser-xml')(bodyParser);
var xml = require('xml');
var async = require('async');
/*Tally xml query*/
var xmlstring = '<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>';
let app = express();
app.use(bodyParser.json());
/* use CORS to avoid net::ERR_CONNECTION_RESET */
app.use(cors);
app.post("/",(req,res) =>{ /*
Dynamic Tally xml Query parameter
const dbrequest = req.body.datarequest;
const params = req.body.params;
*/
var options = {
uri: 'http://localhost:9000',

method: 'POST',

headers: { 'Content-Type': 'text/xml;
charset:UTF-8',
'Content-Length': Buffer.byteLength(xmlstring)},
body: req.body.xmlstr
};
var result="";
async.parallel([
function(callback) {
/* tally data fetch from local tally server*/
var url = "http://localhost:9000";
request(options, function(err, response, body) {
// JSON body
if(err) { console.log(err);
callback(true);
return;
}

result = body;
callback(false, body);
});

}

],function(err, results) {
if(err) { console.log(err);
res.send(500,"Server Error");
return;
}
res.send("result--->"+result);
}
);
}

app.listen(4000,'localhost');


Tally data to Power BI

TallyPrime Integration with Power BI

Tally Reports available in Power BI
Tally ERP / Tally Prime we can integrate with Microsoft Power BI is posible with 100%, we can get Power 2 Reports using Tally BI + Microsoft Power BI

Is it possible to connect Tally and Microsoft Power BI?

How to get Tally reports in Power BI


There are two methods we can use...

1. TallyODBC
2. Web Interface (Using Tally XML request)

We can see it in Step By Step

I using TallyODBC

Step 1 : Open your Tallyprime in your desktop,
Opend Tally Company and enable ODBC Services

Step 2 : Open Microsoft Power BI in your desktop

Step 3 : Cleck Getdata option

Step 4 : Select ODBC data source

TallyODBC with Power BI

Step 5 : Select TallyODBC64_10000

TallyODBC tables


Step 6 : Select Tables from the Navigator

Step 7 : Using Power BI you can create Power 2 Reports.

TallyODBC Power BI reports

II using WEB API FOR Tally Data

Step 1 : You can create a Web Json output report using anyone of the followings...
1. PHP,Java, JSP,ASP,ASP.NET...
2. the above pages should hadle Tally XML request and response from Tally (check for
tally integrations for WEB)
Step 2 : Open your Tallyprime in your desktop,

Step 3 : Open Microsoft Power BI in your desktop


Step 4 : Cleck Getdata option

Step 5 : Select WEB data source

Tally WEB API

Step 6 : Enter your any one of the web report URL in URL Parts (as per step 1)

Step 7 : Select HTTP Request Header Parameters as Content-Type and enter "Text/Json" as a data and click "OK" button

Step 8 : do Power BI Kitchen work for the result
Changing the data types, creating Measure using DAX, creating new columns in power bi etc.,
Tallyweb Power BI reports

Step 9 : Create power BI dashboard as per your business needs
TallyWEB Power BI Charts



Related Links...

How to Insert Memorandum voucher in Tally


Export Optional Vouchers from Tally -XML Request


How to filter tally xml response based on voucher number?


Tally Alter Credit Limit and Credit Days using XML Request


How to Get Trial Balance in xml/html format


TallyPrime List of Companies XML Request


How to Get Outstanding data




Latest Post


/Tally Integration Capabilities


/Artificial Intelligence AI


/Artificial Intelligence AI


/Artificial Intelligence AI


/Artificial Intelligence AI