convertLead custom field mapping

convertLead custom field mapping

When using  convertLead via API call, how do we map custom Fields ?

Example: We have a 'MID' field in Leads that needs to be mapped to ' Accounts:MID' and to 'Contacts:MID'. Would they map automatically (being the same)?

What about mapping different fields, like ' Leads:State' to 'Contacts:Other State' ?

Would we need to add something like this to  the ' xmlData' parameter : ?

  1. <Accounts>
  2. <row no="1">
  3. <option val="createAccount">true</option>
  4. <option val="assignTo">sample@zoho.com</option>
  5. <option val="notifyLeadOwner">true</option>
  6. <option val="notifyNewEntityOwner">true</option>
  7. </row>
  8. <row no="2">
  9. <FL val="Accounts Name">Some Name</FL>
  10. <FL val="MID">1234567890</FL>
  11. <FL val="OtherCustomField">Some Custom Value</FL>
  12. </row>
  13. </Accounts>
If so, would we have to define ALL the fields or only custom maps?


Thank you for your help!!