On a webservice class i'm creating a Lead and sometimes A contact with the same External ID (UserID from our website) will already exists for multi-companies. What I want to achieve is to generate a new Account (If possible from a lead, since all accounts we create come from promoted leads and this would make things more confusing for sales and BI) that is related to the existing contact using "Related contacts". The problem is that on the ConvertLead class documentation we find this
setContactId(contactId)Sets the ID of the contact into which the lead will be merged (this contact must be associated with the account specified with setAccountId, and setAccountId must be specified). This value is required only when updating an existing contact. So, I can't actually create a new Account but merge the lead into an existing Contact and later relate it to the new account.
There is any way I could do this smoothly without having to schedule deleting any object which seems a pretty rude way to solve this or creating an Account from nothing(without leadID)?