Results 1 to 7 of 7

Thread: Deleted record, who??

  1. #1
    froilan.alfaro is offline Senior Member
    Join Date
    Jun 2009
    Posts
    25

    Default Deleted record, who??

    You can tell who has erased a record?, Remains in some log of CRM or MySQL?

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Deleted record, who??

    Look in the module's table in the database at the modified_user_id. This will tell you who deleted the record.

    Code:
    select users.user_name, cases.date_modified, cases.deleted
    from cases 
    inner join users on cases.modified_user_id = users.id
    where cases.id = ''

  3. #3
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Deleted record, who??

    if you have access to the database, find the record (deleted=1) and it will have the modified user ID which you can use the Users table to cross reference

  4. #4
    froilan.alfaro is offline Senior Member
    Join Date
    Jun 2009
    Posts
    25

    Default Re: Deleted record, who??

    Teh table cases is emply

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Deleted record, who??

    My guess is that you aren't having an issue with a case record being deleted. What you'll need to do is go to the table for the module/tab that you have a deleted record for. You can simply replace "cases" in the query with the appropriate table to find who deleted the record. If it is an account replace "cases" with "accounts".

  6. #6
    froilan.alfaro is offline Senior Member
    Join Date
    Jun 2009
    Posts
    25

    Default Re: Deleted record, who??

    OK, already found

    by the way, do you know the last time you deleted = 0 before being deleted = 1??

  7. #7
    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: Deleted record, who??

    All mark as deleted changes on some record are considered as a regular record modification, so this date time information is stored on date_modified.
    You can ensure after marking as deleted some record it can not be modified unless undeleted, so the current date_modified indicates the time it was deleted.
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2010-07-08, 09:08 PM
  2. Replies: 6
    Last Post: 2009-12-30, 09:43 AM
  3. Replies: 11
    Last Post: 2009-07-22, 07:58 PM
  4. Replies: 8
    Last Post: 2008-06-03, 05:40 AM
  5. Replies: 8
    Last Post: 2008-05-01, 09:22 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
  •