Skip to Content

Errors while Creating Lead using ABSL

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;

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers