with the below code i am able to qualify the lead record and associate it with existing account but not able to create contact.
var qualifylead = new QualifyLeadRequest
{
OpportunityCurrencyId = currencyId,
CreateOpportunity = true,
OpportunityCustomerId = new EntityReference(Account.LogicalName, (Guid)a.Attributes["accountid"]),
LeadId = new EntityReference(Lead.LogicalName, guid),
Status = new OptionSetValue(3)
};
With the below code i am able to qualify the lead record and create the contact record but not able to associate it with existing account using OpportunityCustomerId.
var qualifylead = new QualifyLeadRequest
{
OpportunityCurrencyId = currencyId,
CreateOpportunity = true,
CreateContact = true,
OpportunityCustomerId = new EntityReference(Account.LogicalName, (Guid)a.Attributes["accountid"]),
LeadId = new EntityReference(Lead.LogicalName, guid),
Status = new OptionSetValue(3)
};
create contact and associate lead with existing account.
*This post is locked for comments