Skip to Content

Errors while Creating Lead using ABSL

Oct 30, 2017 at 07:10 AM


avatar image

Dear Expert

Below code has been used to create Lead taking reference from business partner.

Though, lead name has been passed correctly, system gives an error. "Content.Name is missing"

can you please suggest a way?

// instance of object Lean Lead var elLeanLeadRoot : elementsof LeanLead; elLeanLeadRoot.Lead.Name.content = varLead.Description; //Get AccountUUID & Entity var varAccountUUID = ReuseLibrary.GetAccountUUID(varLead.AccountID.RemoveLeadingZeros()); var varAccountEntity = Customer.Retrieve(varAccountUUID); // CREATE a new Lean Lead with the data put to ROOT node elements newLeanLead = LeanLead.CreateFromBusinessPartner(varAccountEntity); if (newLeanLead.IsSet()) { //newLeanLead.Element::Lead.Name.content = varLead.Description; newLeanLead.Element::Lead.Name.content = varLead.Description; newLeanLead.Association::Lead.Name.content = varLead.Description; //var varNewLeanLeadName = newLeanLead.Element::Lead; //varNewLeanLeadName.Name.content = varLead.Description; newLead = newLeanLead.Association::Lead; } newLead.Name.content = varLead.Description;

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers