Hello,
i user ZCREATOR to create PurchaseOrders in ZCRM. I put only Product in a List as
itemsList = List:Map();
.....
For each ligne in MyView.....
{
itemsList.add({ "Product Id" : ligne.ID_produit_ZCRM, "Unit Price" : MonProduit.get("Unit Price"), "Quantity" : newQty, "Total" : newTotal, "List Price" : ligne.Prix_achat, "Net Total" : newTotal });
}
My ItemsList is full with product.
responseCreate = zoho.crm.create("PurchaseOrders",{ "VENDORID" : idFournisseur, "Subject" : Subject, "PO Number" : PO_Number, "Description" : "Généré sur ZCREATOR", "Due Date" : Due_Date, "PO Date" : PoDate, "Status" : "Reliquat", "Sub Total" : newSubTotal, "Tax" : newTotalTVA, "Adjustment" : "0", "Grand Total" : newGrandTotal, "Billing Street" : Billing_Street, "Billing City" : Billing_City, "Billing Code" : Billing_Code,
"Product Details" : itemsList },2);
The PurchaseOrder is create but the detail of product is empty in ZCRM. Do you know why ? thanks you