Results 1 to 8 of 8

Thread: How to undelete opportunity?

  1. #1
    kilian7 is offline Member
    Join Date
    Jan 2006
    Posts
    7

    Question How to undelete opportunity?

    Hi,

    One of my users, Max, has detected that one of his opportunities disappiered.
    With phpmyadmin I could find the opportunity marked with "deleted=1". Looking at "date_modified" and "modified_user_id" I could find that the opportunity has been deleted by Max, so I asked Max if he deleted the opportunity by error. But he say that at the time the opportunity was deleted he only did a dashboard refresh.

    Could be a SugarCRM bug? I'm using Debian 2.4.27, Sugar 4.0.1e, php 4.3.10-2, MySQL 4.0.23, Apache 1.3.33
    Or, as Dr House says, my user is lying? (House M.D. TV serie)

    Well, the most important for me is to recover the opportunity. Is as easy as changing the "deleted=1" to "deleted=0" in the DB opportunitie record?

    Thanks in advance,

    Kilian
    Last edited by kilian7; 2006-06-29 at 08:37 AM.

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: How to undelete opportunity?

    Quote Originally Posted by kilian7
    Hi,

    One of my users, Max, has detected that one of his opportunities disappiered.
    With phpmyadmin I could find the opportunity marked with "deleted=1". Looking at "date_modified" and "modified_user_id" I could find that the opportunity has been deleted by Max, so I asked Max if he deleted the opportunity by error. But he say that at the time the opportunity was deleted he only did a dashboard refresh.

    Could be a SugarCRM bug? I'm using Debian 2.4.27, Sugar 4.0.1e, php 4.3.10-2, MySQL 4.0.23, Apache 1.3.33
    Or, as Dr House says, my user is lying? (House M.D. TV serie)

    Well, the most important for me is to recover the opportunity. Is as easy as changing the "deleted=1" to "deleted=0" in the DB opportunitie record?

    Thanks in advance,

    Kilian
    Yes, set it back to 0.

  3. #3
    kilian7 is offline Member
    Join Date
    Jan 2006
    Posts
    7

    Talking Re: How to undelete opportunity?

    Thanks sacramentojoe,

    I changed "deleted" to 0 and the opportunity appeared. Then, I searched for the opportunity_id in all the DataBase so I could find all related items (accounts_opportunities, calls, notes, etc) and changed "deleted" to 0 when suitable.


    Kilian
    Last edited by kilian7; 2006-06-30 at 07:17 AM.

  4. #4
    gdoss's Avatar
    gdoss is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Kenwood, CA
    Posts
    39

    Default Re: How to undelete opportunity?

    I had one of my users delete an Opportunity by accident, too. Now, I assumed that changing it from 1 to 0 in the database would restore the Opportunity, however it has not. Came to the forums and found that apparently it should Anything else that must be done or any other ideas?

    Sugar 4.0.0
    Apache 2.0.53
    Fedora Core 3
    PHP 4.3.11
    MySQL 4.1.16

  5. #5
    mpoer@profilingsolutions.com's Avatar
    mpoer@profilingsolutions.com is offline Sugar Community Member
    Join Date
    May 2011
    Location
    Atlanta, GA
    Posts
    64

    Default Re: How to undelete opportunity?

    Quote Originally Posted by gdoss View Post
    I had one of my users delete an Opportunity by accident, too. Now, I assumed that changing it from 1 to 0 in the database would restore the Opportunity, however it has not. Came to the forums and found that apparently it should Anything else that must be done or any other ideas?
    Marking deleted=0 should take care of it. Might want to make sure you're logged in as an appropriate user with access to the record and also clear your cache for good measure.
    Matthew Poer, Consultant/Developer with Profiling Solutions (Atlanta, GA and Mobile, AL).

    @matthewpoer
    @PSI_Atlanta

    Check out my SugarCRM modules:

  6. #6
    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 to undelete opportunity?

    Maybe more than set the opportunity deleted flag as 0, is also important check the tables which has relationships with opportunities to set its flags also to 0, because sometimes the opportunities returns, but its relationship with accounts could be deleted, them it could not be found by some users under the suposed related account for exemple.
    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

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: How to undelete opportunity?

    Yes Rafael is right.
    Whe you delete an opportunity, even all it's relations to other objects are deleted too. So you should search in the database for alle relations set to 0 at the same datetime than the opportunity had been deleted.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  8. #8
    zedsteiner is offline Member
    Join Date
    Jul 2011
    Posts
    15

    Default Re: How to undelete opportunity?

    Quote Originally Posted by kuske View Post
    Yes Rafael is right.
    Whe you delete an opportunity, even all it's relations to other objects are deleted too. So you should search in the database for alle relations set to 0 at the same datetime than the opportunity had been deleted.
    How interesting, I am very keen to learn, but thank you for the information!!

Thread Information

Users Browsing this Thread

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

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
  •