Need Help with Code in Zoho Creator (CRM/API)

Need Help with Code in Zoho Creator (CRM/API)

Hello,

I work with a manufacturing business and we are trying to get products that are listed in the ZOHO CRM as sales orders to transfer to a new app in Creator without the price but with product information. Currently the info from the sales order does transfer to Creator but only the first product! How do I get all of the products to transfer? Can someone help me with my code? I would really appreciate it!

sales_order = zoho.crm.getRecordById("Salesorders",input.order_id);
line_items_str=sales_order.get("product");
line_items=line_items_str.toMap();
quantity=(line_items.get("Quantity")).toLong();
form_data={ "Product_Name" : line_items.get("Product Name"), "Quantity" : quantity };
response = postUrl(" https://creator.zoho.com/api/jilldamico/xml/build-list-trial/form/Build_List_Trial/record/add/authtoken=9e5d5125b301057e0f1fdb962fa13a79&scope=creatorapi",form_data);
info response;