The customer's spec requires some standard fields on leads to be mapped to custom fields and vice versa. I've been trying to override the lead conversion behaviour by writing an apex class. Mapping the fields isn't difficult but actually marking the lead as converted in the same way that SF does is proving difficult. I don't want to use the convertLead method because that automatically maps fields to fields I don't want them mapped to.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
No, all successful conversions will use convertLead, either by UI's leadconvert.jsp, API's convertLead, or Apex Code's convertLead. Since you're writing your own code to handle the conversion, simply call convertLead, then call an update on the account to fix the fields that need intervention.