title: Creating Sales Order in Zoho Books via Zoho Creator
body: <p>I am trying to build a simple application in Zoho Creator where a person inputs the data of a sales order. This has to be translated into Zoho Books along with the integration of the manual orders sent via Zoho Books.</p>
  <p>I have done every single step mentioned in this link: <a href="https://github.com/TheWorkflowAcademy/Zoho-Books-Custom-Connections" rel="nofollow noreferrer">https://github.com/TheWorkflowAcademy/Zoho-Books-Custom-Connections</a></p>
  <p>Plus whatever Zoho is telling here: <a href="https://help.zoho.com/portal/en/community/topic/integreat-03-integrating-zoho-creator-with-zoho-books" rel="nofollow noreferrer">https://help.zoho.com/portal/en/community/topic/integreat-03-integrating-zoho-creator-with-zoho-books</a></p>
  <p>Here is my code:</p>
  <pre><code>listVar = List();
  
  //iterating each row in the subform
  for each line in Items_to_Order
  {
    mapVar = map();
    mapVar.put(&quot;item_id&quot;, line.Item_ID);
    mapVar.put(&quot;name&quot;, line.Item_Name);
    mapVar.put(&quot;rate&quot;, line.Price);
    mapVar.put(&quot;quantity&quot;, line.Quantity);
    listVar.add(mapVar);
  }
  
  values = map();
  values.put(&quot;customer_id&quot;, input.Sales_Order_ID);
  values.put(&quot;line_items&quot;, listVar);
  response = invokeurl
  [
      url : &quot;https://books.zoho.com/api/v3/salesorders?organization_id=762389459&quot;
      type :POST
      parameters:mapVar
      connection:&quot;zoho_books&quot;
      detailed:true
  ];
  
  // To see all headers and content
  info response;
  </code></pre>