Results 1 to 3 of 3

Thread: How do I delete an ACCOUNT associated to an imported Lead?

  1. #1
    FrischInBigD is offline Junior Member
    Join Date
    Oct 2010
    Location
    Dallas, TX
    Posts
    3

    Question How do I delete an ACCOUNT associated to an imported Lead?

    I have imported a Lead list for email campaigns, and most of those Leads have corresponding Accounts that were also created during the import process.

    I have decided to delete all the Leads from the system and start over (because the imported list should have been scrubbed better). I can easily delete all the imported Leads, BUT the Accounts that were created from the imports still remain in the system.

    How do I now delete those Accounts without removing other legitimate Accounts that have contacts?

    Thanks!

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: How do I delete an ACCOUNT associated to an imported Lead?

    Depending on your situation, there are a few ways to do this:
    -The most exact way would be to go to the manually delete all the accounts that occurred during the import. Not gonna lie, depending on how many accounts you have, could take a while.
    -Another way would be to do a search for all accounts created by you on whatever day you did your import. If you created other accounts on that day this could be an issue.
    -If you know a little sql, you can go into your database and update all the accounts created within a certain timeframe of the import. The sql would look something like this: update accounts set deleted = 1 where date_entered > some_time and date_entered < some_time_plus_an_hour and created_by = your_user_id

    Note that, again, if you do know some sql and you screw up, Sugar doesn't delete records until it prunes its database (usually on the 1st of the month if you have it set up) so if you do screw up you can pop into your database and undelete the records. note again, however, that if you do this, you need to make sure you undelete all the relationships as well.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  3. #3
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: How do I delete an ACCOUNT associated to an imported Lead?

    I think the faster way for non developer user, is to search accounts by creation date (so the created date has to be available on search panel), and select the importation date.

    Then select all accounts, and mass delete them.

    To avoid delete other accounts created at the same date, you could config your page to display entries enough to list all your accounts, and display in this list some column as created by, then you can check and delete just the accounts created by you (or you could filter by created by field also).
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Delete all imported leads...
    By dgreenhouse in forum General Discussion
    Replies: 2
    Last Post: 2011-05-27, 07:51 PM
  2. Relate imported calls to each specific lead
    By sanktusm in forum Feature Requests
    Replies: 0
    Last Post: 2010-11-05, 12:53 PM
  3. Imported Contacts do not get Account Name
    By jchristoff@vsicam.com in forum Help
    Replies: 7
    Last Post: 2010-06-25, 03:18 AM
  4. Replies: 0
    Last Post: 2008-03-17, 09:08 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
  •