Assuming productdetails is required, the following 2 results were found.
the table but if it does exist then to simply skip adding the product. v_Name = "Myproduct1"; // note the lowercase P l_ProductDetails = Product[Product_Name == v_Name]; b_Exists = if(l_ProductDetails.count() > 0, true, false); if(!b_Exists) { // insert...
= o_QuoteDetails._Product_Details[i]; console.log(o_ThisLineItem); // assigning to a lookup field (Product) var o_ProductDetails = ZDK.Apps.CRM.Products.fetchById(o_ThisLineItem._product_Lookup_Id); o_NewLineItem.Product_Name = { id:...