Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By andopes

Thread: Revert Massive update

  1. #1
    Gaug is offline Member
    Join Date
    Jun 2011
    Posts
    18

    Default Revert Massive update

    Hello.

    Accidentally I did a massive update assigning all the Prospects/Potential Clients and Accounts to one user, I wonder, is there any way to revert this massive update and reassign them back to the users that had them? I guess its possible, since theres a way to see the summary of changes and there you can see the old value before it was changed, I mean the user that had the Account, so it saves it in another place in the database. I hope you can help me.

    Thanks in advance.

  2. #2
    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: Revert Massive update

    I don't know if there is some automatic way to do it, but if I was in your situation I will try to do the following:
    1. The easiest thing is if you have a database backup (normally we have it daily) then you could take the old values from your backup and assign to your current database fields.
    2. If you have no backup is possible that in tables that is named with "_audit" the old values keep stored (it works just for fields marked as auditable=true). Then you could write some code to recovery the values from this table and update your current records.

    Maybe someone else has some other solution.
    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

  3. #3
    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: Revert Massive update

    If you have some good SQL knowledge you can do that in 1 or 2 hours.
    SugarCRM stores informations about updated fields in <table_name>_audit, and assigned_user_id is an auditable field.
    You can look for all records updated by Mass Update, identify the previous assigned user and do the update by sql query.

    Best regards
    dkinzer likes this.
    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.

  4. #4
    Gaug is offline Member
    Join Date
    Jun 2011
    Posts
    18

    Default Re: Revert Massive update

    I did that taking the values from the "_audit" tables, thanks a lot!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Massive Upload for dropdown lists
    By jlabuelo in forum General Discussion
    Replies: 4
    Last Post: 2010-03-09, 10:55 AM
  2. Replies: 0
    Last Post: 2009-11-16, 11:43 AM
  3. massive amount of data? slow
    By Meyer in forum Help
    Replies: 1
    Last Post: 2009-10-19, 03:35 PM
  4. Massive uploads of documents
    By danmaz74 in forum Developer Help
    Replies: 1
    Last Post: 2009-02-10, 09:53 AM
  5. Massive Calls Campaign
    By nmartinez in forum Help
    Replies: 1
    Last Post: 2007-09-07, 12:58 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
  •