Results 1 to 5 of 5

Thread: Can I delete multiple leads (more than 10,000) at a time with a search criteria

  1. #1
    noppann is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    27

    Default Can I delete multiple leads (more than 10,000) at a time with a search criteria

    Can I do that without playing with SQL query?

    Thanks in advance.

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

    Default Re: Can I delete multiple leads (more than 10,000) at a time with a search criteria

    Yes, theoretically....

    If you set your ListView limit to 10000+ records in System Settings, you would then be able to pull up a listing of leads that is more than 10000 records long. You would then be able to search and select those which you wish to delete. You should be forewarned that it could take some time for it to display so many records in one list. I've never tried it with more than 1000, and even that took a while.

    Personally, I think the SQL query route is a much faster approach, but it is feasibility will depend on other variables too.
    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
    noppann is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    27

    Default Re: Can I delete multiple leads (more than 10,000) at a time with a search criteria

    Quote Originally Posted by Angel
    Yes, theoretically....

    If you set your ListView limit to 10000+ records in System Settings, you would then be able to pull up a listing of leads that is more than 10000 records long. You would then be able to search and select those which you wish to delete. You should be forewarned that it could take some time for it to display so many records in one list. I've never tried it with more than 1000, and even that took a while.

    Personally, I think the SQL query route is a much faster approach, but it is feasibility will depend on other variables too.

    Thanks for the nice idea. I agree with you about using SQL. I'm not sure if it's ok if I just delete all records from "leads" table or not to that is why i hesitate to do so. Now, i'm trying it.

    Thank you again

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

    Default Re: Can I delete multiple leads (more than 10,000) at a time with a search criteria

    Quote Originally Posted by noppann
    I'm not sure if it's ok if I just delete all records from "leads" table or not to that is why i hesitate to do so.
    Should be fine, but if you have calls or other activities (pending or historical) associated with those leads, make sure you delete those records as well. The same is true for the corresponding record that stores any custom fields you may have defined for that module.

    Worse case scenario is that the leads would not be in the system, but the other tables would have some orphaned records that need to be cleaned up at some piont.

    It shouldn't harm the system in any way.
    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)
    ______________________________________________

  5. #5
    noppann is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    27

    Default Re: Can I delete multiple leads (more than 10,000) at a time with a search criteria

    Thanks a lot. Very informative.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2007-06-18, 10:06 PM
  2. Leads -> Basic Search
    By JustinK101 in forum Help
    Replies: 4
    Last Post: 2007-01-23, 04:47 PM
  3. Search Shows other people's leads
    By sprysoft in forum Help
    Replies: 0
    Last Post: 2006-08-10, 04:29 AM
  4. Replies: 10
    Last Post: 2005-03-29, 04:36 PM
  5. Replies: 0
    Last Post: 2005-01-28, 08:01 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
  •