I want to create a Quote when Lead gets converted.
I am doing this using custom functions. I can create a record in Quote but unable to insert Products (Line Items) to that Quote.
Here is the code which I have tried.
-
pr=map();
-
pr.put("Product Id","1392132000000082009");
-
pr.put("Product Name","testProduct");
-
pr.put("Quantity","1");
-
pr.put("List Price","1.00");
-
pr.put(("Discount"),"0");
-
pr.put("Total","1.00");
-
pr.put(("Total After Discount"),"1.00");
-
pr.put("Net Total","1.00");
-
resp = zoho.crm.create("Quotes",{ "Subject" : "testSubject", ("Account Name") : ("testAccount"), "Product" : pr },2);
By using this, Quote is created but it doesn't add product to this Quote.
I have also tried creating Quote using CURL (using PHP) and it works fine.
Is there any thing which I am missing. I need some help regarding how to Create Quote with Products.