Note that there are some explanatory texts on larger screens.

plurals
  1. PO.Net Application update QuickBook Application information like address
    text
    copied!<p>I want to update QuickBook Data like Customer Address, Invoice Address etc. through the my .Net application. I was able to get all QuickBook data through the API, but i am not getting to update QuickBook data.</p> <p>Update Function</p> <pre><code>StringBuilder strXML = new StringBuilder(string.Empty); XmlDocument inputXMLDoc = new XmlDocument(); inputXMLDoc.AppendChild(inputXMLDoc.CreateXmlDeclaration("1.0", null, null)); inputXMLDoc.AppendChild(inputXMLDoc.CreateProcessingInstruction("qbxml", "version=\"8.0\"")); XmlElement qbXML = inputXMLDoc.CreateElement("QBXML"); inputXMLDoc.AppendChild(qbXML); XmlElement qbXMLMsgsRq = inputXMLDoc.CreateElement("QBXMLMsgsRq"); qbXML.AppendChild(qbXMLMsgsRq); qbXMLMsgsRq.SetAttribute("onError", "stopOnError"); XmlElement custModeRq = inputXMLDoc.CreateElement("CustomerModRq"); qbXMLMsgsRq.AppendChild(custModeRq); custModeRq.SetAttribute("requestID", "15"); XmlElement custMod = inputXMLDoc.CreateElement("CustomerMod"); custModeRq.AppendChild(custMod); XmlElement ListId = inputXMLDoc.CreateElement("ListID"); custMod.AppendChild(ListId); ListId.InnerText = _listID; XmlElement EditSequence = inputXMLDoc.CreateElement("EditSequence"); custMod.AppendChild(EditSequence); EditSequence.InnerText = _editSequence; XmlElement Name = inputXMLDoc.CreateElement("Name"); custMod.AppendChild(Name); Name.InnerText = "Jack Sparrow"; string s = QuickbooksAPI.APIBase.GetQBQueryResponce(inputXMLDoc.OuterXml); return inputXMLDoc.OuterXml; </code></pre> <p>Get Request/Response function</p> <pre><code>RequestProcessor2 rp = null; string ticket = null; string response = null; try { rp = new RequestProcessor2(); rp.OpenConnection("", "Stamps.com"); //rp.OpenConnection2("", "Stamps.com",QBXMLRPConnectionType.localQBDLaunchUI); ticket = rp.BeginSession("", QBFileMode.qbFileOpenDoNotCare); response = rp.ProcessRequest(ticket, strRequest); } catch (System.Runtime.InteropServices.COMException ex) { //MessageBox.Show("COM Error Description = " + ex.Message, "COM error"); return ""; } finally { if (ticket != null) { rp.EndSession(ticket); } if (rp != null) { rp.CloseConnection(); } }; </code></pre> <p>Thanks in an advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload