You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Inserting Sales Products upon creating Leads

Received Response
13
Views
2
Comments
edited Aug 6, 2020 11:17AM in Sales 2 comments

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) }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!