java - Unable to add product details while creating new quote -
I am developing an Android app to create a new quote in the vTiger (ver 5.4) CRM server. I was able to generate a new quote but was not added to the product_id and the quantity I sent in addition to the bid details. Except other details, products, their quantity and pricing, are being shown in new bids. I also studied but it was not helpful in this case. / Em> Similarly I am sending the necessary details to create a new quote in the vTiger server. - The above code helps me generate quotes without product description. After studying the above characters, I changed the URL that I was using in my code: You think this is appropriate, even if it is a php solution. You have put the problem: I have also tried, but unfortunately I can not use the inventory print table. Perhaps an indication of the lack of proper authentication or missing privilege already. That's why I recommend I found the same thing but it is in
php not in
Android / JavaA .
try {objectJson.put ("subject", subject); ObjectJson.put ("account_id", account id); ObjectJson.put ("bill_street", address); ObjectJson.put ("assigned_user_id", "19x1"); ObjectJson.put ("conversion_rate", "1.000"); ObjectJson.put ("currency_id", "21x1"); ObjectJson.put ("hdnTaxType", "Groups"); ObjectJson.put ("productive", product ID); ObjectJson.put ("quantity", quantity); } Grip (JasonAxpection E) {// Two-Auto Auto-Generated Catch Block E.Pintstaxtress (); } String data = null; {Data = URLEncoder.encode ("sessionName", "UTF-8") + "=" + URLEncoder.encode (session ID, "UTF-8"); Data + = "& amp;" + URLNcoder.X Code ("Element", "UTF-8") + "=" + URLNcoder.xcode (Object Jason.tracing ("," ISO-885 9 -1 "); Data + = "& amp;" + URLEncoder.encode ("elementType", "UTF-8") + "=" + URLEncoder.encode (module-name, "UTF-8"); // moduleName = 'citation'} Catch (unsupported encoding exception e) {// TODO auto generated block e.printStackTrace (); } String text = ""; Buffer Reader = Faucet; // Try to send the data {// Defined URL where the data url url = new url ("http: //vtiger_url/webservice.php? Operation = create") to send; // Send POST data request URL connection Conn = url.openConnection (); Conn.setDoOutput (right); OutputStream Vector wr = New OutputStream Water (conn.getOutputStream ()); Wr.write (data); Wr.flush (); } Hold (Exception Pre) {}
http: //vtiger_url/webservice.php? Total = 23000 and Operation = Create . This helped me add the total amount in the newly created quote, but I did not succeed in adding the remaining details using this method.
inventoryproductel . Try to use that table as your authentication privileges (session ID), check the response for any indication and try to resolve the
table .
Comments
Post a Comment