External Request to Tally server to get the current company name

Discussion in 'Tally Integration' started by Manimaran, Sep 12, 2023.

    
  1. Manimaran

    Manimaran New Member


    Hi Fellow developers,
    i am sending external request from Other ERPs or from Postman to get the current company on Tally using following XML
    <ENVELOPE>
    <HEADER>\
    <VERSION>1</VERSION>\
    <TALLYREQUEST>Export</TALLYREQUEST>\
    <TYPE>DATA</TYPE>\
    <ID>GetC@m@nyName</I@D>\
    <TOKEN></TOKEN>
    <SESSIONID></SESSIONID>
    </HEADER>\
    <BODY>
    <DESC>
    <STATICVARIABLES>
    <SVCOMPANYCONNECTNAME>
    {company Name}
    </SVCOMPANYCONNECTNAME>
    </STATICVARIABLES>
    </DESC>
    </BODY>
    </ENVELOPE>

    Its responds me with current company name, but some time when Tally Odbc Enabled and Company opened and available its not give me the correct response its gives me
    <DESC>Server company is not available!</DESC>
    but when i try in browser Odbc is running
    <RESPONSE>TallyPrime Server is Running</RESPONSE>
    kindly help in this
     


  2. Sai Vineeth

    Sai Vineeth Active Member


    Refer this thread
     


  3. Sridharan S

    Sridharan S Member


    Code:
    <ENVELOPE>
    <HEADER>
    <VERSION>1</VERSION>
    <TALLYREQUEST>EXPORT</TALLYREQUEST>
    <TYPE>Function</TYPE>
    <ID>$$CurrentCompany</ID>
    </HEADER>
    <BODY>
    <DESC>
    <STATICVARIABLES>
    <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
    </STATICVARIABLES>
    <FUNCPARAMLIST/>
    <TDL>
    <TDLMESSAGE/>
    </TDL>
    </DESC>
    </BODY>
    </ENVELOPE>
    
     


  4. Manimaran

    Manimaran New Member


    Thanks for your reply
     


Share This Page