Results 1 to 3 of 3

Thread: Convert Leads Automatically?

  1. #1
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Convert Leads Automatically?

    Hi,
    Is it possible to execute the convert the lead functionality without going through the Convert Lead View? If I have a boolean on my lead, I want to convert the lead (automatically) after the lead save if boolean == true and assume I have everything (i.e. field name/values and modules) I want to convert into. Any help or ideas would be amazing.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Convert Leads Automatically?

    It is possible to do it via a logic hook, but you would need to define whether or not an account/opportunity gets created and if so, what values should the respective records contain.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Smile 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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. automatically calling leads
    By mitchberry in forum General Discussion
    Replies: 7
    Last Post: 2009-09-08, 11:23 PM
  2. automatically dispursing new leads to users
    By mitchberry in forum General Discussion
    Replies: 1
    Last Post: 2009-05-27, 11:21 AM
  3. Automatically modify Leads
    By robtarr in forum General Discussion
    Replies: 11
    Last Post: 2009-04-07, 11:53 AM
  4. Automatically add leads to target lists?
    By Dale Thomas in forum Help
    Replies: 3
    Last Post: 2007-07-18, 05:05 PM
  5. Automatically add leads to email campaigns
    By dakman1 in forum General Discussion
    Replies: 1
    Last Post: 2006-10-11, 04:11 PM

Tags for this Thread

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
  •