Results 1 to 3 of 3

Thread: Convert Leads in Bulk

  1. #1
    lukestevendyer@gmail.com is offline Junior Member
    Join Date
    Oct 2009
    Posts
    1

    Default Convert Leads in Bulk

    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.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Convert Leads in Bulk

    It could be done but would need custom development

  3. #3
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Convert Leads in Bulk

    It should be pretty easy to create a custom action that does this.

    Something like this
    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();

    You should get the idea...

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. convert several leads from one button
    By mikrob35 in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-24, 03:53 PM
  2. Convert Leads
    By mlh in forum General Discussion
    Replies: 4
    Last Post: 2007-05-18, 05:22 PM
  3. Convert all leads to accounts?
    By ledg in forum Help
    Replies: 0
    Last Post: 2006-12-12, 12:58 AM
  4. Urgent: Leads: Bulk e-mail notification issue?
    By computerology in forum General Discussion
    Replies: 0
    Last Post: 2006-02-01, 06:18 PM
  5. Bulk update leads in list view?
    By mtndan in forum Help
    Replies: 0
    Last Post: 2006-01-02, 09:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •