Re: Convert Leads Automatically?
Hi,
If converted is coming to True. The Lead is already converted.
And if you wanna convert the lead.
Create an account for it. Just like mentioned above using the Logic Hook.
You have all the details.
Once you add an account
$account->save();
$acc_id = $account->id; //object of accounts
will give you the Id of the last save account.
You will be having the lead_id also
just $lead->retrieve($lead_id); //object of leads
$lead->account_name = <lead value u want>;
$lead->account_id = $acc_id;
$lead->save();
that would pretty much make the lead converted... without going to the convert view 
Hope it is helpful !!!
If It Is To Be, It Is Up To Me
Bookmarks