I am looking for a way to convert leads in bulk from the leads list.
So that I can take several leads, convert them, create an account, note, and opportunity for several leads
all at the same time without having to go into each one individually.
I am looking for a way to convert leads in bulk from the leads list.
So that I can take several leads, convert them, create an account, note, and opportunity for several leads
all at the same time without having to go into each one individually.
It could be done but would need custom development
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
It should be pretty easy to create a custom action that does this.
Something like this
You should get the idea...PHP Code:global $db;
require "modules/Leads/Lead.php";
require "modules/Contacts/Contact.php";
$query = "SELECT id from leads WHERE ...." // Criteria for which leads to convert go here
$res = $db->query($query);
while ($row = $db->fetchByAssoc($res))
{
$lead = new Lead();
$lead->retrieve($row['id']);
$opty = new Opportunity();
// Populate opportunity fields from lead
$opty->name = $lead->name;
// etc.. Maybe even loop the field_defs and copy all fields
// Do the same for contact
$opty->save();
$contact->save();
}
M
--
Marnus van Niekerk
There are only 10 types of people in the world
those who can read binary and those who don't
Modules:
CE Teams - Upgrade safe teams module for Community Edition
FieldACL - Field Level Access Control for Community Edition
EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
FlexibleChartDashlet - Display any data in a Dashlet Chart
DocumentThumbnails - Thumbnails for Documents module
Many questions can be answered by reading the Developers Manual
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks