API Method convertLead Troubles
From the API docs, it appears that the xmlData parameter is optional in the convertLead API call. Furthermore, xmlData is only documented for adding a Potential. I have confirmed that it is in fact not optional, or at least the only way I can get convertLead to work is by adding a fake potential.
All I want to do is convert a lead to an account and a contact **without** a potential. How can this be done?
Conflicting Documentation:
1) In this section, the highlighted items are I assume required.
2) In the table below and in the documentation, the (*) asterisked items conflict with the highlighted items in terms of mandatory requirement. The highlighted items are accurate as far as I can tell. In other words, xmlData ***is*** required.
| Parameter
|
Data Type
|
Description
|
| ticket*
|
String
|
-
|
| apikey*
|
String
|
-
|
| leadId*
|
String
|
Specify unique ID of the lead
|
| xmlData
|
XML
|
Specify fields and corresponding values
|
| newFormat*
|
Integer
|
newFormat=1: To exclude fields with "null" values while inserting data from your CRM account. newFormat=2: To include fields with "null" values while inserting data from your CRM account.
|
* - Mandatory parameter