You need to sign in to do that
Don't have an account?

Need to fire a trigger upon lead conversion
I'm trying to do some updates when a lead is converted. I have a custom object that is related to a lead, and when the lead is converted, I want my custom object to be related to the new account that is created, or the account to which it is merged. As I've searched the documentation, all I can find are references explaining how to code the actual conversion, but I just want to do some updates when that happens. Does anyone have ideas how to do this? Thanks!
My approach would be to override the Convert button with S-control in order to 'trap' the convert. Then use sforce.connection.convertLead to run default conversion, then while you still have control make changes to accounts, whatever based on result. e.g.
var convert = new sforce.LeadConvert();
convert.convertedStatus = convertedStatus;
convert.doNotCreateOpportunity = true;
convert.leadId ="{!Lead.Id}";
result = sforce.connection.convertLead([convert]);
if (result[0].getBoolean("success")) {
var accountId = result[0].accountId; // Target record
// modify account record
}