Inserting Sales Products upon creating Leads
Summary
We want to create Sales Product upon creation of Sales Lead.Content
We want to create a Sales Product upon creation of Leads. Since we cannot add a product group in the Sales Lead creation page, I created a field and I used it in my script. But it doesn't work. Below is the code: def sLeadProductMulti = LeadProductMulti_c if(sLeadProductMulti != null){ def SalesLeadProductObject = MklProdAssoc1; def criteriaRow = SalesLeadProductObject.createRow() criteriaRow.setAttribute('ProductName', sLeadProductMulti) SalesLeadProductObject.insertRow(criteriaRow) }
Tagged:
1