<div dir="ltr">Please refer: <a href="https://wiki.vtiger.com/index.php/ServerAPI_reference_manual#Inventory_Record_Create">https://wiki.vtiger.com/index.php/ServerAPI_reference_manual#Inventory_Record_Create</a></div><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
<br><div class="gmail_quote">On Fri, Oct 10, 2014 at 7:22 PM, Conrado Maggi <span dir="ltr"><<a href="mailto:comaggi@gmail.com" target="_blank">comaggi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>I'm working on a new module and I need to add a new order using the the API.<br><br></div>I've used vtws_retrieve_inventory to retrieve the order now I'm trying to add a new one. Is the following the correct way to do it:<br><br>vtws_create('SalesOrder',$array,$user) <br><br>and for the lines items <br><br>vtws_create('LineItem',$array,$user)<br><br></div><div><br></div><div>Is there a way to add the entire order in just one call?<br></div><br></div>Thanks,<br><br><div><div><br><br></div></div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>