AnsweredAssumed Answered

Call ConvertLead on custom Action

Question asked by kyuchukovv kyuchukovv on Jan 20, 2015
Hello sugar specialists,

I am willing to call the function ConvertLead on custom action and give it a Lead ID or something and convert the Lead and create Account, Contacts... etc (custom module).

What I have to do?
Since now i had modified the Leads/controller.php and i want to call the ConvertLead function when

 if(isset($_POST['wizardAction']) == "Save") {
   convertLead($lead->id); 
}

Outcomes