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

Need to add new trigger - HELP!
Convert lead to opportunity= help
Need to automatically convert leads to opportunity- how to add new APEX trigger and
Need to automatically convert leads to opportunity- how to add new APEX trigger and
trigger opptyCreationonConvert on Lead (before update) {
List<Opportunity> o = new List<Opportunity>();
for(Lead convertedLead: Trigger.new){
if(convertedLead.IsConverted == TRUE && convertedLead.ConvertedOpportunityId == NULL){
o.add (new Opportunity(
Name = convertedLead.Company,
CloseDate = date.today()+90,
AccountId = convertedLead.ConvertedAccountId,
StageName = 'Booked Appointment'));
}
}
insert o;
}
http://www.bulkified.com/How+to+Customize+the+Lead+Conversion+Process+in+Salesforce.com