Results 1 to 3 of 3

Thread: Setting the deleted when converting lead

  1. #1
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Question Setting the deleted when converting lead

    Ok,

    Here's a dumb question. Maybe its just too late or something.

    Anyway what I need to do is to have the lead deleted instead of simply showing as converted. I searched around and some have suggested how but I can't find the best place to put this.

    All I need to do is to add $query = "Update sugarcrm.lead deleted=1"; $result = $bean->db->query($query, true,"Error incrementing Client Number: ");

    So which file should I put this in? How to extend this so its upgrade safe? What other erros have i made?

    Thanks for the help ahead of time,
    Paris

    BTW: CentOS 5, Apache 2.x, PHP 5.2.x, MYSQL 5
    Last edited by ptemplin7; 2008-04-16 at 05:44 AM. Reason: Add specs!

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Setting the deleted when converting lead

    Hi, Paris.

    You should create a logic_hook before save into Leads, which will set $focus->deleted = 1 if the status = 'Converted'

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Setting the deleted when converting lead

    Thanks,

    I had thought to go the logic hook route but wasn't sure.

    Paris

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Keeping Custom Lead Data When Converting Lead -> Account
    By matthewfong in forum General Discussion
    Replies: 11
    Last Post: 2010-11-23, 02:38 PM
  2. Replies: 5
    Last Post: 2009-02-03, 03:13 PM
  3. Converting lead to a contact is not working
    By rmapply in forum General Discussion
    Replies: 0
    Last Post: 2008-03-31, 03:27 PM
  4. From lead to order
    By george_bbch in forum Feature Requests
    Replies: 0
    Last Post: 2006-09-26, 02:02 PM
  5. Replies: 3
    Last Post: 2005-03-04, 02:44 AM

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
  •